Skip to content

Instantly share code, notes, and snippets.

@tj-devel709
Created August 18, 2020 21:04
Show Gist options
  • Save tj-devel709/bc641f97e42772bc2a9b98aa6d95fc55 to your computer and use it in GitHub Desktop.
Save tj-devel709/bc641f97e42772bc2a9b98aa6d95fc55 to your computer and use it in GitHub Desktop.
************************************
****** Introspection Errors ********
************************************
[FAIL] Could not find the field 'AEAutocorrectModeNone' in /System/Library/Frameworks/AutomaticAssessmentConfiguration.framework/AutomaticAssessmentConfiguration
[FAIL] Could not find the field 'AEAutocorrectModeSpelling' in /System/Library/Frameworks/AutomaticAssessmentConfiguration.framework/AutomaticAssessmentConfiguration
[FAIL] Could not find the field 'AEAutocorrectModePunctuation' in /System/Library/Frameworks/AutomaticAssessmentConfiguration.framework/AutomaticAssessmentConfiguration
[FAIL] iOSApiFieldTest.ApiFieldTest.FieldExists :  3 errors found in 6282 fields validated: AEAutocorrectModeNone, AEAutocorrectModeSpelling, AEAutocorrectModePunctuation
Tests run: 45 Passed: 44 Inconclusive: 0 Failed: 1 Ignored: 0
************************************
****** My binding *****************
************************************
[Native]
enum AEAutocorrectMode : long {
[Field ("AEAutocorrectModeNone")]
None = 0,
[Field ("AEAutocorrectModeSpelling")]
Spelling = 1 << 0,
[Field ("AEAutocorrectModePunctuation")]
Punctuation = 1 << 1,
}
************************************
****** Objective C *****************
************************************
+API_AVAILABLE(ios(14.0))
+API_UNAVAILABLE(macos, macCatalyst)
+typedef NS_OPTIONS(NSUInteger, AEAutocorrectMode) {
+ AEAutocorrectModeNone = 0,
+ AEAutocorrectModeSpelling = 1 << 0,
+ AEAutocorrectModePunctuation = 1 << 1,
+} NS_SWIFT_NAME(AEAssessmentConfiguration.AutocorrectMode);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment