Skip to content

Instantly share code, notes, and snippets.

@vinczebalazs
Created February 10, 2020 18:26
Show Gist options
  • Save vinczebalazs/9e02347374164d02736190d16a5c74db to your computer and use it in GitHub Desktop.
Save vinczebalazs/9e02347374164d02736190d16a5c74db to your computer and use it in GitHub Desktop.
static func font(_ name: Font, weight: Weight, size: CGFloat) -> UIFont {
UIFont(name: "\(name.rawValue)-\(weight.rawValue)", size: size)!
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment