KemonoFriendsLabel 0.0.2

KemonoFriendsLabel 0.0.2

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Apr 2017
SwiftSwift Version 3.0
SPMSupports SPM

Maintained by superk.



  • By
  • zhenkai zhao

KemonoFriendsLabel

A subclass of UILabel, drawing text like title in KemonoFriends. image

Usage

support for both storyboard and code to create the label

if using in code, call label.sizeToFit() after setting the text.

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