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

    color

    The color to apply.

  • Sets search bar’s cancel button text style.

    Declaration

    Swift

    public func setCancelButton(textStyle: TextStyle) -> <<error type>>

    Parameters

    textStyle

    The text style to apply.

  • Undocumented

    Declaration

    Swift

    private func getViewElement<T>(type: T.Type) -> T?