Last active
April 26, 2017 13:38
-
-
Save ConorBrady/6785e62a935c371a172db846bd865d74 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
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