From 1d83826753edd6b81009012699631eb4aaeb0cd3 Mon Sep 17 00:00:00 2001 From: pinhead84 Date: Thu, 4 May 2023 09:02:21 +0000 Subject: [PATCH] fix(ios): declare error codes enum within main class This problem occurs, if the plugin is used together with "cordova-plugin-advanced-imagepicker". I'm not sure, if this is a proper fix - but the error is gone with this little modification. --- src/ios/ContactsX.swift | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/ios/ContactsX.swift b/src/ios/ContactsX.swift index b027c4c..49e1400 100644 --- a/src/ios/ContactsX.swift +++ b/src/ios/ContactsX.swift @@ -395,11 +395,11 @@ import PhoneNumberKit } return ContactsX._PhoneNumberKitInstance!; } -} -enum ErrorCodes:NSNumber { - case UnsupportedAction = 1 - case WrongJsonObject = 2 - case PermissionDenied = 3 - case UnknownError = 10 + enum ErrorCodes:NSNumber { + case UnsupportedAction = 1 + case WrongJsonObject = 2 + case PermissionDenied = 3 + case UnknownError = 10 + } }