Find All Fonts Using Swift 3

by Doug Sparling

import UIKit

let fontFamilyNames = UIFont.familyNames
for familyName in fontFamilyNames {
    print("------------------------------")
    print("Font Family Name = [\(familyName)]")
    let names = UIFont.fontNames(forFamilyName: familyName )
    print("Font Names = [\(names)]")
}