https://github.com/superk589/kemonofriendslabel
https://github.com/superk589/kemonofriendslabel
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/superk589/kemonofriendslabel
- Owner: superk589
- License: mit
- Created: 2017-04-10T03:25:22.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-04-10T14:37:19.000Z (about 8 years ago)
- Last Synced: 2025-02-13T21:47:31.594Z (4 months ago)
- Language: Swift
- Size: 95.7 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# KemonoFriendsLabel

[](http://cocoapods.org/pods/KemonoFriendsLabel)
[](http://cocoapods.org/pods/KemonoFriendsLabel)
[](http://cocoapods.org/pods/KemonoFriendsLabel)A subclass of UILabel, drawing text like title in KemonoFriends.
## CocoaPods:
```
platform :ios, '8.0'
use_frameworks!
target 'myApp' do
pod 'KemonoFriendsLabel'
end
```## Usage
support for both storyboard and code to create the label
if using in code, call label.sizeToFit() after setting the text.
```swift
let label = KemonoFriendsLabel()
label.text = "KemonoFriends"
label.font = UIFont.systemFont(ofSize: 40, weight: 30)
label.sizeToFit()
view.addSubview(label)
label.center = view.center
```if using in storyboard, make sure not adding constraints to limit the size of label
sometimes multi-line label may display text in error