FUITextView

open class FUITextView : UITextView

The FUITextView class extends UITextView, to support displaying a styled placeholder text string when the text property is empty.

The class replaces the open-source SZTextView class, used in version 1.0.

  • The text displayed by the text view.

    Declaration

    Swift

    open override var text: String! { get set }
  • The styled text displayed by the text view

    Declaration

    Swift

    open override var attributedText: NSAttributedString! { get set }
  • The placeholder text displayed by the text view, when the text value is empty.

    Declaration

    Swift

    open var placeholder: String? { get set }
  • The styled placeholder text displayed by the text view, when the text value is empty.

    Declaration

    Swift

    open var attributedPlaceholder: NSAttributedString? { get set }
  • The color of the placeholder text displayed in the text view.

    This property applies to the entire placeholder text string. The default color is UIColor.preferredFioriColor(forStyle: .primary4).

    Assigning a new value to this property will update attributes of the entire attributedPlaceholder string. If you want to apply the color to only a portion of the placeholder, you must create a new attributed string with the desired style information and assign it to the attributedPlaceholder property.

    Declaration

    Swift

    open var placeholderTextColor: UIColor { get set }
  • Obsolete property from open-source component SZTextView, kept for API backwards-compatibility.

    Setting this property has no effect on the view

    Declaration

    Swift

    @available(*, deprecated, message: "This property is kept for backwards-compatibility to version 1.0, but has no effect on the view")
    public var fadeTime: Double { get set }