UISearchBar

class UISearchBar : UIView, UIBarPositioning, UITextInputTraits
  • SwifterSwift: Text field inside search bar (if applicable).

    Declaration

    Swift

    public var textField: UITextField? { get }
  • SwifterSwift: Text with no spaces or new lines in beginning and end (if applicable).

    Declaration

    Swift

    public var trimmedText: String? { get }
  • SwifterSwift: Clear text.

    Declaration

    Swift

    public func clear()