Skip to content

Instantly share code, notes, and snippets.

@RustemAqtau
Created July 6, 2020 05:32
Show Gist options
  • Save RustemAqtau/5c34d513db25fc5d76b39c4c25d14df0 to your computer and use it in GitHub Desktop.
Save RustemAqtau/5c34d513db25fc5d76b39c4c25d14df0 to your computer and use it in GitHub Desktop.
UIFont Extension
extension UIFont {
static func avenir20() -> UIFont? {
return UIFont.init(name: "avenir", size: 20)
}
static func avenir26() -> UIFont? {
return UIFont.init(name: "avenir", size: 26)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment