These constants specify the type of checking the methods should do. They are returned by result
.
SDKs
- iOS 4.0+
- macOS 10.6+
- tvOS 9.0+
- watchOS 2.0+
Framework
- Foundation
These constants specify the type of checking the methods should do. They are returned by result
.
SDKs
Framework
static var orthography: NSText Checking Result .Checking Type
Attempts to identify the language
static var spelling: NSText Checking Result .Checking Type
Checks spelling.
static var grammar: NSText Checking Result .Checking Type
Checks grammar.
static var date: NSText Checking Result .Checking Type
Attempts to locate dates.
static var address: NSText Checking Result .Checking Type
Attempts to locate addresses.
static var link: NSText Checking Result .Checking Type
Attempts to locate URL links.
static var quote: NSText Checking Result .Checking Type
Replaces quotes with smart quotes.
static var dash: NSText Checking Result .Checking Type
Replaces dashes with em-dashes.
static var replacement: NSText Checking Result .Checking Type
Replaces characters such as (c) with the appropriate symbol (in this case ©).
static var correction: NSText Checking Result .Checking Type
Performs autocorrection on misspelled words.
static var regular Expression: NSText Checking Result .Checking Type
Matches a regular expression.
static var phone Number: NSText Checking Result .Checking Type
Matches a phone number.
static var transit Information: NSText Checking Result .Checking Type
Matches a transit information, for example, flight information.