Get All The Fonts Recipe

October 6, 2019 ยท 1 minute read

You can use this code for listing all fonts inside your app, including system fonts and all weights. Just put it in your viewDidLoad() method and this will output in the Debug’s Console:

for family: String in UIFont.familyNames {
    for names: String in UIFont.fontNames(forFamilyName: family) {
        print("== \(names)")