To run the example project, clone the repo, and run pod install
from the Example directory first.
let placeholderTextView = PlaceholderTextView()
let frame = CGRect(x: 0.0, y: 64.0, width: view.bounds.width, height: 300.0)
placeholderTextView.frame = frame
placeholderTextView.placeholder = "Placeholder Text"
placeholderTextView.placeholderColor = UIColor.lightGray
self.view.addSubview(placeholderTextView)
- Swift 4.2+
PlaceholderTextView is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "PlaceholderTextView"
CHEEBOW, [email protected]
PlaceholderTextView is available under the MIT license. See the LICENSE file for more info.