TypingSuggester
A component responsible for finding typing suggestions in a UITextView
.
public struct TypingSuggester
Initializers
init(options:)
public init(options: TypingSuggestionOptions)
Properties
options
The structure that contains the suggestion configuration.
public let options: TypingSuggestionOptions
Methods
typingSuggestion(in:)
Checks if the user typed the recognising symbol and returns the typing suggestion.
public func typingSuggestion(in textView: UITextView) -> TypingSuggestion?
Parameters
textView
: TheUITextView
the user is currently typing.
Returns
The typing suggestion if it was recognised, nil
otherwise.