StackyText supports textBlock like LEGO
To run the example project, clone the repo, and run pod install from the Example directory first.
- iOS 13 higher
- Swift 5.0 higher
StackyText is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod'StackyText'Enter StackyText URL in Package Dependency
https://github.com/yim2627/StackyText
UIFont.checkFamilyFontName()adjustsFontForContentSizeCategory =trueletlabel=UILabel()
label.adjustsFontForContentSizeCategory =true
label.text ="NotoSans_Black"
label.textColor =.black
label.font =.withFontFamilyName(name:"NotoSansKR", type:.black, dynamic:.title1)
// OR...
label.font =withFontName("NotoSansKR-Black", dynamic:.title1)letlabel=UILabel()
label.adjustsFontForContentSizeCategory =true
stackLabel.textColor =.black
stackLabel.attributedText =NSMutableAttributedString().text("Noto", fontName:"NotoSansKR", type:.black, dynamic:.title1).text("Sans", fontName:"NotoSansKR", type:.thin, dynamic:.body).colorText("K", fontName:"NotoSansKR", type:.bold, dynamic:.largeTitle, color:.systemBlue).colorText("R", fontName:"NotoSansKR", type:.regular, dynamic:.largeTitle, color:.systemRed)| Normal | Dynamic Type |
|---|---|
![]() | ![]() |
Jiseong, yim2627@gmail.com
StackyText is available under the MIT license. See the LICENSE file for more info.


