UISearchBar
class UISearchBar : UIView, UIBarPositioning, UITextInputTraits
-
Sets the text field’s background color with a color of choice.
Declaration
Swift
public func setTextFieldColor(color: UIColor)Parameters
colorThe color to apply.
-
Sets search bar’s cancel button text style.
Declaration
Swift
public func setCancelButton(textStyle: TextStyle) -> <<error type>>Parameters
textStyleThe text style to apply.
-
Undocumented
Declaration
Swift
private func getViewElement<T>(type: T.Type) -> T?
UISearchBar Extension Reference