Latest 1.1.0
Homepage https://github.com/chiahan1123/PlaceholderLabel
License MIT
Platforms ios 9.0
Authors

Build Status
Version
License
Platform

Gives UILabel options to set a placeholder text and placeholder text color.

Installation

PlaceholderLabel is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod 'PlaceholderLabel'

Example

screen shot 2017-08-13 at 10 28 24 pm

You can set the placeholder text and placeholder text color from the Storyboard or you can also do the following:

@IBOutlet weak var nameLabel: PlaceholderLabel!
@IBOutlet weak var genderLabel: PlaceholderLabel!
@IBOutlet weak var birthdayLabel: PlaceholderLabel!

override func viewDidLoad() {
  super.viewDidLoad()
  nameLabel.text = "Eric"
  genderLabel.text = "Male"
  birthdayLabel.placeholder = "n/a"
  birthdayLabel.placeholderColor = .gray
}

License

PlaceholderLabel is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "PlaceholderLabel",
    "version": "1.1.0",
    "summary": "UILabel with placeholder support.",
    "description": "Gives UILabel options to set a placeholder text and placeholder text color.",
    "homepage": "https://github.com/chiahan1123/PlaceholderLabel",
    "screenshots": "https://user-images.githubusercontent.com/11417800/29250565-f27ea388-8076-11e7-8148-24fcae7f78ae.png",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "chiahan1123": "[email protected]"
    },
    "source": {
        "git": "https://github.com/chiahan1123/PlaceholderLabel.git",
        "tag": "1.1.0"
    },
    "platforms": {
        "ios": "9.0"
    },
    "source_files": "PlaceholderLabel/Classes/**/*",
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This