<commit_before>UILabel+YHPlaceholder
======================

A missing placeholder for UILabel.


Installation
------------

Use [CocoaPods](http://cocoapods.org).

```ruby
pod 'UILabel+YHPlaceholder'
```


Usage
-----

```objc
#import "UILabel+YHPlaceholder.h"
```
Then create `UILabel` and set `placeholder`.

- **Implement Objective-C**:

```objc
UILabel *label = [[UILabel alloc] init];
label.placeholder = @"How are you?";
label.placeholderColor = UIColor.lightGrayColor; // optional
label.attributedPlaceholder = ... // NSAttributedString (optional)
```

- **Implement Swift**:

```swift
let label: UILabel = UILabel()
label.placeholder = "How are you?"
label.placeholderColor = UIColor.lightGray // optional
label.attributedPlaceholder = ... // NSAttributedString (optional)
```


License
-------

UILabel+YHPlaceholder is under MIT license. See the [LICENSE](LICENSE) file for more information.<commit_msg>fix readme<commit_after>UILabel+YHPlaceholder
======================

A missing placeholder for UILabel.


Installation
------------

Use [CocoaPods](http://cocoapods.org).

```ruby
pod 'UILabel+YHPlaceholder'
```


Usage
-----

```objc
#import "UILabel+YHPlaceholder.h"
```
Then create `UILabel` and set `placeholder`.

- **Implement Objective-C**:

```objc
UILabel *label = [[UILabel alloc] init];
label.placeholder = @"How are you?";
label.placeholderColor = UIColor.lightGrayColor; // optional
label.attributedPlaceholder = ... // NSAttributedString (optional)
```

License
-------

UILabel+YHPlaceholder is under MIT license. See the [LICENSE](LICENSE) file for more information.
{'fraction_non_alphanumeric': 0.18961201501877348, 'fraction_numerical': 0.0, 'mean_word_length': 4.4573378839590445, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1229987', 'n_tokens_mistral': 543, 'n_tokens_neox': 506, 'n_words': 123}