TweeAttributedTextField

open class TweeAttributedTextField : TweeActiveTextField

An object of the class can show the custom info label under text field.

  • Info label that is shown for a user. This label will appear under the text field. You can use it to configure appearance.

    Declaration

    Swift

    public private(set) lazy var infoLabel: UILabel { get set }
  • Animation duration for showing and hiding the info label.

    Declaration

    Swift

    @IBInspectable
    public var infoAnimationDuration: Double
  • Color of info text.

    Declaration

    Swift

    @IBInspectable
    public var infoTextColor: UIColor { get set }
  • Font size of info text. If you want to change font use infoLabel property.

    Declaration

    Swift

    @IBInspectable
    public var infoFontSize: CGFloat { get set }

Methods

  • Shows info label with/without animation.

    Declaration

    Swift

    @objc(showAttributtedInfo:animated:)
    public func showInfo(_ attrText: NSAttributedString, animated: Bool = true)

    Parameters

    text

    Custom attributed text to show.

    animated

    By default is true.

  • Shows info label with/without animation.

    Declaration

    Swift

    @objc
    public func showInfo(_ text: String, animated: Bool = true)

    Parameters

    text

    Custom text to show.

    animated

    By default is true.

  • Hides the info label with animation or not.

    Declaration

    Swift

    @objc
    public func hideInfo(animated: Bool = true)

    Parameters

    animated

    By default is true.