yusayusa / PlaceholderTextView

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PlaceholderTextView

Carthage compatible

Requirements

Swift 3.0 iOS 9.0+

Installation

Carthage

PlaceholderTextView is available through Carthage. To install it, simply add the following line to your Cartfile:

github "yusayusa/PlaceholderTextView"

CocoaPods

TODO

Usage

let textView: UITextView

// set placeholder
let attribute = NSAttributedString(string: "placeholder",
                               attributes: [NSFontAttributeName: UIFont.systemFont(ofSize: 15),
                                            NSForegroundColorAttributeName: UIColor.gray,
                                            ])
textView.setPlaceholder(attribute: attribute)

License

PlaceholderTextView is released under the MIT license. Go read the LICENSE file for more information.

About

License:MIT License


Languages

Language:Swift 90.6%Language:Objective-C 9.4%