Skip to content

Instantly share code, notes, and snippets.

@embassem
Created February 18, 2017 12:00
Show Gist options
  • Select an option

  • Save embassem/5f7903db5e767dbd3533e275b4cf14b3 to your computer and use it in GitHub Desktop.

Select an option

Save embassem/5f7903db5e767dbd3533e275b4cf14b3 to your computer and use it in GitHub Desktop.
for family: String in UIFont.familyNames()
{
print("\(family)")
for names: String in UIFont.fontNamesForFamilyName(family)
{
print("== \(names)")
}
}
for (NSString* family in [UIFont familyNames])
{
NSLog(@"%@", family);
for (NSString* name in [UIFont fontNamesForFamilyName: family])
{
NSLog(@" %@", name);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment