Created
January 26, 2017 19:21
-
-
Save rbresjer/cfa0d53664f3d3f2d399bdbb4421f0b8 to your computer and use it in GitHub Desktop.
UIFont extension with app font scheme
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
extension UIFont { | |
static var appHeader: UIFont { | |
return .boldFont(ofSize: 18) | |
} | |
static var appBody: UIFont { | |
return .font(ofSize: 14) | |
} | |
static var appButton: UIFont { | |
return .font(ofSize: 14) | |
} | |
// ... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment