Skip to content

Instantly share code, notes, and snippets.

@samuelbeek
Created October 31, 2014 15:49
Show Gist options
  • Save samuelbeek/d66851e58f62b26cb379 to your computer and use it in GitHub Desktop.
Save samuelbeek/d66851e58f62b26cb379 to your computer and use it in GitHub Desktop.
Show all available fonts on iOS in Swift
for family in UIFont.familyNames() {
println(family);
var family: String = family as String
for name in UIFont.fontNamesForFamilyName(family) {
println(" \(name)");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment