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
let familyNames: [String] = UIFont.familyNames | |
for familyName in familyNames { | |
print("Family Name: \(familyName)") | |
let fontNames: [String] = UIFont.fontNames(forFamilyName: familyName) | |
print(fontNames) | |
} |
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
// Font Enum | |
public enum Font: String { | |
/// Font Family: Poppins | |
case poppinsBold = "Poppins" | |
case poppinsLight = "Poppins-Light" | |
case poppinsMedium = "Poppins-Medium" | |
case poppinsRegular = "Poppins-Regular" | |
case poppinsSemiBold = "Poppins-SemiBold" | |
/// Font Family: Roboto |