InputTextView

open class InputTextView : UITextView

A UITextView that has a UILabel embedded for placeholder text

Important Notes

  1. Changing the font, textAlignment or textContainerInset automatically performs the same modifications to the placeholderLabel
  2. Intended to be used in an InputBarAccessoryView
  3. Default placeholder text is Aa
  4. Will pass a pasted image it’s InputBarAccessoryView‘s InputPlugins
  • 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
  • Sets up the default properties

    Declaration

    Swift

    open func setup()
  • Undocumented

    Declaration

    Swift

    open override func canPerformAction(_ action: Selector, withSender sender: Any?) -> Bool
  • Undocumented

    Declaration

    Swift

    open override func paste(_ sender: Any?)