Skip to main content

TypingSuggestion

A structure that contains the information of the typing suggestion.

public struct TypingSuggestion 

Initializers

init(text:locationRange:)

The typing suggestion info.

public init(text: String, locationRange: NSRange) 

Parameters

  • text: A String representing the currently typing text.
  • locationRange: A NSRange that stores the location of the typing suggestion in relation with the whole input.

Properties

text

A String representing the currently typing text.

public let text: String

locationRange

A NSRange that stores the location of the typing suggestion in relation with the whole input.

public let locationRange: NSRange

Did you find this page helpful?