init
TypeScriptstatic init(): Promise<UISearchTextField>Swift declarationinit()class · iOS 13.0+ · SDK 27.1
@MainActor class UISearchTextFieldstatic init(): Promise<UISearchTextField>Swift declarationinit()insertToken(token: UISearchToken, tokenIndex: number): Promise<void>Swift declarationfunc insertToken(_ token: UISearchToken, at tokenIndex: Int)positionOfToken(tokenIndex: number): Promise<UITextPosition>Swift declarationfunc positionOfToken(at tokenIndex: Int) -> UITextPositionremoveToken(tokenIndex: number): Promise<void>Swift declarationfunc removeToken(at tokenIndex: Int)replaceTextualPortion(textRange: UITextRange, token: UISearchToken, tokenIndex: number): Promise<void>Swift declarationfunc replaceTextualPortion(of textRange: UITextRange, with token: UISearchToken, at tokenIndex: Int)tokensIn(textRange: UITextRange): Promise<Array<UISearchToken>>Swift declarationfunc tokens(in textRange: UITextRange) -> [UISearchToken]get allowsCopyingTokens(): Promise<boolean>Swift declarationvar allowsCopyingTokens: Bool { get set }setAllowsCopyingTokens(value: boolean): Promise<void>Swift declarationvar allowsCopyingTokens: Bool { get set }get allowsDeletingTokens(): Promise<boolean>Swift declarationvar allowsDeletingTokens: Bool { get set }setAllowsDeletingTokens(value: boolean): Promise<void>Swift declarationvar allowsDeletingTokens: Bool { get set }get searchSuggestions(): Promise<(Array<SDKHandle>) | null>Swift declarationvar searchSuggestions: [any UISearchSuggestion]? { get set }setSearchSuggestions(value?: (Array<SDKHandle>) | null): Promise<void>Swift declarationvar searchSuggestions: [any UISearchSuggestion]? { get set }get textualRange(): Promise<UITextRange>Swift declarationvar textualRange: UITextRange { get }get tokenBackgroundColor(): Promise<(UIColor) | null>Swift declarationvar tokenBackgroundColor: UIColor! { get set }setTokenBackgroundColor(value?: (UIColor) | null): Promise<void>Swift declarationvar tokenBackgroundColor: UIColor! { get set }get tokens(): Promise<Array<UISearchToken>>Swift declarationvar tokens: [UISearchToken] { get set }setTokens(value: Array<UISearchToken>): Promise<void>Swift declarationvar tokens: [UISearchToken] { get set }No declarations were skipped in this snapshot.