InputTextView
open class InputTextView : UITextView
A UITextView that has a UILabel embedded for placeholder text
Important Notes
- Changing the font, textAlignment or textContainerInset automatically performs the same modifications to the placeholderLabel
- Intended to be used in an
InputBarAccessoryView
- Default placeholder text is
Aa
- Will pass a pasted image it’s
InputBarAccessoryView
‘sInputPlugin
s
-
Undocumented
Declaration
Swift
open override var text: String! { get set }
-
Undocumented
Declaration
Swift
open override var attributedText: NSAttributedString! { get set }
-
The images that are currently stored as NSTextAttachment’s
Declaration
Swift
open var images: [UIImage] { get }
-
Undocumented
Declaration
Swift
open var components: [Any] { get }
-
Undocumented
Declaration
Swift
open var isImagePasteEnabled: Bool
-
A UILabel that holds the InputTextView’s placeholder text
Declaration
Swift
public let placeholderLabel: UILabel
-
The placeholder text that appears when there is no text
Declaration
Swift
open var placeholder: String? { get set }
-
The placeholderLabel’s textColor
Declaration
Swift
open var placeholderTextColor: UIColor? { get set }
-
The UIEdgeInsets the placeholderLabel has within the InputTextView
Declaration
Swift
open var placeholderLabelInsets: UIEdgeInsets { get set }
-
The font of the InputTextView. When set the placeholderLabel’s font is also updated
Declaration
Swift
open override var font: UIFont! { get set }
-
The textAlignment of the InputTextView. When set the placeholderLabel’s textAlignment is also updated
Declaration
Swift
open override var textAlignment: NSTextAlignment { get set }
-
The textContainerInset of the InputTextView. When set the placeholderLabelInsets is also updated
Declaration
Swift
open override var textContainerInset: UIEdgeInsets { get set }
-
Undocumented
Declaration
Swift
open override var scrollIndicatorInsets: UIEdgeInsets { get set }
-
A weak reference to the InputBarAccessoryView that the InputTextView is contained within
Declaration
Swift
open weak var inputBarAccessoryView: InputBarAccessoryView?
-
Undocumented
Declaration
Swift
public convenience init()
-
Undocumented
Declaration
Swift
public override init(frame: CGRect, textContainer: NSTextContainer?)
-
Undocumented
Declaration
Swift
required public init?(coder aDecoder: NSCoder)
-
Undocumented
Declaration
Swift
deinit
-
Undocumented
Declaration
Swift
open override func canPerformAction(_ action: Selector, withSender sender: Any?) -> Bool
-
Undocumented
Declaration
Swift
open override func paste(_ sender: Any?)