Skip to content

Instantly share code, notes, and snippets.

@ConorBrady
Last active April 26, 2017 13:38
Show Gist options
  • Save ConorBrady/6785e62a935c371a172db846bd865d74 to your computer and use it in GitHub Desktop.
Save ConorBrady/6785e62a935c371a172db846bd865d74 to your computer and use it in GitHub Desktop.
public extension UIFont {
static func bold(size: CGFloat) -> UIFont {
return UIFont(name: "AvenirNext-Bold", size: size)!
}
static func medium(size: CGFloat) -> UIFont {
return UIFont(name: "AvenirNext-Medium", size: size)!
}
static func regular(size: CGFloat) -> UIFont {
return UIFont(name: "AvenirNext-Regular", size: size)!
}
static func demiBold(size: CGFloat) -> UIFont {
return UIFont(name: "AvenirNext-DemiBold", size: size)!
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment