FUITextView
@MainActor
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
@MainActor open override var text: String! { get set } -
The styled text displayed by the text view
Declaration
Swift
@MainActor open override var attributedText: NSAttributedString! { get set } -
The placeholder text displayed by the text view, when the
textvalue is empty.Declaration
Swift
@MainActor open var placeholder: String? { get set } -
The styled placeholder text displayed by the text view, when the
textvalue is empty.Declaration
Swift
@MainActor open var attributedPlaceholder: NSAttributedString? { get set } -
The color of the
placeholdertext displayed in the text view.This property applies to the entire
placeholdertext string. The default color isUIColor.preferredFioriColor(forStyle: .primary4).Assigning a new value to this property will update attributes of the entire
attributedPlaceholderstring. 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 theattributedPlaceholderproperty.Declaration
Swift
@MainActor open var placeholderTextColor: UIColor { get set }