Skip to content

Instantly share code, notes, and snippets.

@abbeyjackson
Last active November 24, 2015 17:05
Show Gist options
  • Save abbeyjackson/e74b9878587320b0d82e to your computer and use it in GitHub Desktop.
Save abbeyjackson/e74b9878587320b0d82e to your computer and use it in GitHub Desktop.
Objective-C:
for (NSString* family in [UIFont familyNames])
{
NSLog(@"%@", family);
for (NSString* name in [UIFont fontNamesForFamilyName: family])
{
NSLog(@" %@", name);
}
}
Swift:
for family: String in UIFont.familyNames()
{
print("\(family)")
for names: String in UIFont.fontNamesForFamilyName(family)
{
print("== \(names)")
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment