TweeAttributedTextField

public 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()
  • Animation duration for showing and hiding the info label.

    Declaration

    Swift

    @IBInspectable public private(set) var infoAnimationDuration: Double = 1
  • Color of info text.

    Declaration

    Swift

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

    Declaration

    Swift

    @IBInspectable public var infoFontSize: CGFloat
  • Undocumented

    Declaration

    Swift

    override public func awakeFromNib()
  • Undocumented

    Declaration

    Swift

    public func showInfo(_ attrText: NSAttributedString, animated: Bool = true)
  • Shows info label with animation or not.

    Declaration

    Swift

    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

    public func hideInfo(animated: Bool = true)

    Parameters

    animated

    By default is true.