ATTextView

@IBDesignable public class ATTextView: UITextView

The ATTextView adds various functionalities to UITextView, e.g. placeholder.

  • The variable allows to set color for placeholder. Set it to nil to use default placeholder color.

    Usage Example

    self.messageTextView.placeholderColor = UIColor(red: 173.0/255.0, green: 216.0/255.0, blue: 230.0/255.0, alpha: 1.0)
    

    See also

    placeholder

    Declaration

    Swift

    @IBInspectable public var placeholderColor :UIColor?
  • The variable allows to set placeholder for current textview.

    Usage Example

    self.messageTextView.placeholder = "Type your message here."
    

    See also

    placeholderColor

    Declaration

    Swift

    @IBInspectable public var placeholder :String?
  • Initializer.

    Declaration

    Swift

    required public init(coder pDecoder: NSCoder)
  • Initializer.

    Declaration

    Swift

    public override init(frame: CGRect, textContainer: NSTextContainer?)
  • Overridden method from superclass.

    Declaration

    Swift

    override public func awakeFromNib()