QQPlaceholderTextView 0.0.6

QQPlaceholderTextView 0.0.6

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Mar 2016
SPMSupports SPM

Maintained by Quang Tran.




QQPlaceholderTextView

Adding placeholder property for UITextView without subclass, written in Swift

Note: this libray is inspired from original source of devxoul that written in Obj-C

QQPlaceholderTextView

Usage

  • You can set the value of the placeholder property just like using UITextField.
  • Because it does not subclass from UITextView so you don’t need to edit anything.
  • Additionally, you can also apply style of UITextField into it as figure above

Code

You need to import QQPlaceholderTextView into place that you want to use

import QQPlaceholderTextView

And set properties for it

textView.placeholder = "I'am a placeholder"
textView.isApplyTextFieldStyle = true

Installation

Requirements

  • iOS 8.0+
  • Xcode 7+

License

QQPlaceholderTextView is released under the MIT license. See LICENSE for details.