Latest 1.1.1
Homepage https://github.com/KEN-chan/MultilinePlaceholderTextView
License MIT
Platforms ios 8.0
Authors

MultilinePlaceholderTextView is TextView with multiline placeholder

Usage

  • You can use placeholder, placeholderTextColor
  • You can use attributedPlaceholder
  • You can use 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()

result

Installation

CocoaPods

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

Carthage

brew install carthage

Add following to your Cartfile

github "KEN-chan/MultilinePlaceholderTextView"

Run

carthage update --platform ios

Requirements

  • iOS 8.0+
  • Swift 4.0+

License

MIT license

Latest podspec

{
    "name": "MultilinePlaceholderTextView",
    "version": "1.1.1",
    "summary": "TextView with multiline placeholder",
    "description": "UITextView doesn't have `placeholder`. it's very inconvenient.nTextView with multiline placeholder.",
    "homepage": "https://github.com/KEN-chan/MultilinePlaceholderTextView",
    "license": "MIT",
    "authors": {
        "Kenta Hara": "[email protected]"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/KEN-chan/MultilinePlaceholderTextView.git",
        "tag": "1.1.1"
    },
    "source_files": "MultilinePlaceholderTextView/*.{swift,h,m}",
    "exclude_files": "Classes/Exclude",
    "pushed_with_swift_version": "4.0"
}

Pin It on Pinterest

Share This