Skip to content

Instantly share code, notes, and snippets.

@tj-devel709
Created August 18, 2020 15:56
Show Gist options
  • Save tj-devel709/b8a5d150cc387fcb8e07c58c954532e0 to your computer and use it in GitHub Desktop.
Save tj-devel709/b8a5d150cc387fcb8e07c58c954532e0 to your computer and use it in GitHub Desktop.
****************************************
************** Xcode *******************
****************************************
extension AEAssessmentConfiguration {
@available(iOS 14.0, *)
public struct AutocorrectMode : OptionSet {
public init(rawValue: UInt)
public static var spelling: AEAssessmentConfiguration.AutocorrectMode { get }
public static var punctuation: AEAssessmentConfiguration.AutocorrectMode { get }
}
}
****************************************
************** Sharpie *****************
****************************************
+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