TextSTyle is an open source swift library from Yalantis that provides a declarative syntax for defining typefaces with some nice extras.
With TextStyle you can quickly define all the fonts to use for a specific font family like this:
light: "Helvetica-Light",
lightItalic: "Helvetica-LightOblique",
regular: "Helvetica",
italic: "Helvetica-Oblique",
bold: "Helvetica-Bold",
boldItalic: «Helvetica-BoldOblique")
And also quickly access the different styles like in this example showing how one could utilize the defined bold font:
You can also change the thickness, and color attributes and more.
You can read more about TextStyle on the Yalantis blog.
You can find TextStyle on Github here.
A great library for defining text styles.
Original article: TextStyle – A Swift Library Allowing You To Easily Manage Text Styles
©2016 iOS App Dev Libraries, Controls, Tutorials, Examples and Tools. All Rights Reserved.
Reference source: iOS App Dev Libraries, Controls, Tutorials, Examples and Tools