FUITextView

open class FUITextView : UITextView
extension FUITextView: Initializable

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

  • 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 }