Skip to content

Instantly share code, notes, and snippets.

@rbresjer
Created January 26, 2017 19:17
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save rbresjer/71bfb0a4d8ff521373768a05aa9f6348 to your computer and use it in GitHub Desktop.
UIFont extension with app font initializers
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