FUISearchTagView

open class FUISearchTagView : UIView
extension FUISearchTagView: UIKeyInput
extension FUISearchTagView: UITextInputTraits

A view representation of FUISearchTag.

  • The text to display.

    Declaration

    Swift

    open var displayText: String { get set }
  • The text representation of delimiter.

    Declaration

    Swift

    open var displayDelimiter: String { get set }
  • The font of the text.

    Declaration

    Swift

    open var font: UIFont? { get set }
  • Corner radius of tag view.

    Declaration

    Swift

    open var cornerRadius: CGFloat { get set }
  • Border width of tag view.

    Declaration

    Swift

    open var borderWidth: CGFloat { get set }
  • Border color of tag view.

    Declaration

    Swift

    open var borderColor: UIColor? { get set }
  • Background color to be used for selected state.

    Declaration

    Swift

    open var selectedColor: UIColor? { get set }
  • Background color to be used for normal state.

    Declaration

    Swift

    open var normalBackgroundColor: UIColor? { get set }
  • Text color of text in normal(non-selected) state.

    Declaration

    Swift

    open var textColor: UIColor? { get set }
  • Text color of text in selected state.

    Declaration

    Swift

    open var selectedTextColor: UIColor? { get set }
  • A boolean value indicating if bounce animation hanppens on selection. Default value is true.

    Declaration

    Swift

    open var bounceOnSelection: Bool
  • A boolean value indicating if tag view is selected.

    Declaration

    Swift

    open var selected: Bool { get set }
  • Create a tag view with a FUISearchTag.

    Declaration

    Swift

    public init(tag: FUISearchTag)

    Parameters

    tag

    A FUISearchTag which is used to create a tag view.

  • Return the optimal size of tag view based on the fitting size.

    Declaration

    Swift

    open func sizeToFit(_ size: CGSize) -> CGSize

    Parameters

    size

    The size you prefer the tag view to fit.

    Return Value

    The optimal size for tag view.

  • The autocorrection style for the tag view text.

    Declaration

    Swift

    public var autocorrectionType: UITextAutocorrectionType { get set }