TweePlaceholderTextField

open class TweePlaceholderTextField : UITextField

An object of the class has a customized placeholder label which has animations on the beginning and ending editing.

  • Animation type when a user begins editing.

    See more

    Declaration

    Swift

    public enum MinimizationAnimationType
  • Default is immediately.

    Declaration

    Swift

    public var minimizationAnimationType: MinimizationAnimationType
  • Minimum font size for the custom placeholder.

    Declaration

    Swift

    @IBInspectable
    public var minimumPlaceholderFontSize: CGFloat
  • Original (maximum) font size for the custom placeholder.

    Declaration

    Swift

    @IBInspectable
    public var originalPlaceholderFontSize: CGFloat
  • Placeholder animation duration.

    Declaration

    Swift

    @IBInspectable
    public var placeholderDuration: Double
  • Color of custom placeholder.

    Declaration

    Swift

    @IBInspectable
    public var placeholderColor: UIColor? { get set }
  • The styled string for a custom placeholder.

    Declaration

    Swift

    public var attributedTweePlaceholder: NSAttributedString? { get set }
  • The string that is displayed when there is no other text in the text field.

    Declaration

    Swift

    @IBInspectable
    public var tweePlaceholder: String? { get set }
  • The custom insets for placeholderLabel relative to the text field. top doesn’t have any effect.

    Declaration

    Swift

    public var placeholderInsets: UIEdgeInsets
  • Custom placeholder label. You can use it to style placeholder text.

    Declaration

    Swift

    public private(set) lazy var placeholderLabel: UILabel { get set }
  • The current text that is displayed by the label.

    Declaration

    Swift

    override open var text: String? { get set }
  • The styled text displayed by the text field.

    Declaration

    Swift

    override open var attributedText: NSAttributedString? { get set }
  • The technique to use for aligning the text.

    Declaration

    Swift

    override open var textAlignment: NSTextAlignment { get set }
  • The font used to display the text.

    Declaration

    Swift

    override open var font: UIFont? { get set }