init(primaryString:alternativeStrings:)
Initializes an NSTextAlternatives instance.
Declaration
init(primaryString: String, alternativeStrings: [String])Parameters
- primaryString:
The string that is initially chosen as the input string.
- alternativeStrings:
An array of alternative possible interpretations that the user might select.
Return Value
An initialized NSTextAlternatives instance.