The current or starting search text.
SDKs
- iOS 2.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
Framework
- UIKit
Declaration
var text: String? { get set }
Discussion
The default value is nil
.
The current or starting search text.
SDKs
Framework
var text: String? { get set }
The default value is nil
.
var placeholder: String?
The string that is displayed when there is no other text in the text field.
var prompt: String?
A single line of text displayed at the top of the search bar.