Skip to content

Instantly share code, notes, and snippets.

@krummler
Last active April 15, 2020 11:04
Show Gist options
  • Save krummler/6f60f8f2a41c021a490f86fe9e6be570 to your computer and use it in GitHub Desktop.
Save krummler/6f60f8f2a41c021a490f86fe9e6be570 to your computer and use it in GitHub Desktop.
struct FontStyles {
private static let customFont = UIFont(name: "Cochin", size: 15)!
static let headline = customFont.with(style: .headline, basePointSize: 34)
static let body = customFont.with(style: .body, basePointSize: UIFont.labelFontSize)
static let bigTime = customFont.withSize(66)
static let buttonPrimary = customFont.with(style: .body, basePointSize: UIFont.buttonFontSize)
static let buttonSecondary = customFont.with(style: .caption1, basePointSize: UIFont.smallSystemFontSize)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment