A light-weight UITextView that supports for placeholder.
File > Add Packages > https://github.com/donggyushin/DGPlaceholderTextView
pod 'DGPlaceholderTextView', :git => 'https://github.com/donggyushin/DGPlaceholderTextView'
let placeholderTextView = DGPlaceholderTextView()
placeholderTextView.placeholder = "This is place holder text"
Properties | Description | Default | Type |
---|---|---|---|
horizontalPadding | placeholder's horizontal padding value to TextView | 4.5 | CGFloat |
verticalPadding | placeholder's vertical padding value to TextView | 7.5 | CGFloat |
placeholder | placeholder text value | nil | String? |
placeholderTextColor | placeholder's text color | .gray | UIColor |
font | textview's text font | .systemFont(ofSize: 17) | UIFont |
link |
Stars: 5 |
Last commit: 2 years ago |
Full Changelog: https://github.com/donggyushin/DGPlaceholderTextView/compare/v1.0.1...v1.0.2
Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics