Skip to content

Instantly share code, notes, and snippets.

@Bradysm
Created March 28, 2020 18:52
Show Gist options
  • Save Bradysm/f25f59fe9ae1766ceeb451e8508ae4bc to your computer and use it in GitHub Desktop.
Save Bradysm/f25f59fe9ae1766ceeb451e8508ae4bc to your computer and use it in GitHub Desktop.
Manager struct to ensure encapsulation of font names
// FontNameManager created by Brady Murphy
struct FontNameManager {
//MARK: name of font family
struct Montserrat {
static let light = "Montserrat-Light"
static let regular = "Montserrat-Regular"
// add rest of the font style names
}
// ... structs for other typefaces
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment