Created
January 26, 2017 19:17
-
-
Save rbresjer/71bfb0a4d8ff521373768a05aa9f6348 to your computer and use it in GitHub Desktop.
UIFont extension with app font initializers
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fileprivate extension UIFont { | |
static func lightFont(ofSize size: CGFloat) -> UIFont { | |
return R.font.latoLight(size: size)! | |
} | |
static func font(ofSize size: CGFloat) -> UIFont { | |
return R.font.latoRegular(size: size)! | |
} | |
static func boldFont(ofSize size: CGFloat) -> UIFont { | |
return R.font.latoBold(size: size)! | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment