MultilinePlaceholderTextView is TextView with multiline placeholder
placeholder
, placeholderTextColor
attributedPlaceholder
textContainerInset
let placeholderTextView = MultilinePlaceholderTextView()
placeholderTextView.textContainerInset = UIEdgeInsets(top: 10, left: 10, bottom: 10, right: 10)
placeholderTextView.placeholder = "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat."
placeholderTextView.attributedPlaceholder = configureAttributedString()
gem install cocoapods
Add following to your Podfile
platform :ios, '8.0'
use_frameworks!
target 'Your Target Name' do
pod 'MultilinePlaceholderTextView'
end
Run
pod install
brew install carthage
Add following to your Cartfile
github "KEN-chan/MultilinePlaceholderTextView"
Run
carthage update --platform ios
MIT license