HintTextView
iOS. UITextView support PlaceHolder
cocoapods
pod 'HintTextView'
Use Example
class ViewController: UIViewController {
@IBOutlet private weak var textView: HintTextView!
override func viewDidLoad() {
super.viewDidLoad()
textView.layer.borderColor = UIColor.black.cgColor
textView.layer.borderWidth = 1
textView.hint = "텍스트를 입력하여 주세요. 내가 하고 싶은 말을 다 적어봅시다."
}
}
Use Storyboard
Simple use!
- Attribute inspector