A Swift 6 implementation can be found here:
for familyName in UIFont.familyNames {
print(familyName)
for fontName in UIFont.fontNames(forFamilyName: familyName) {
print(fontName)
}
}
Just add this to a init of any class i.e AppDelegate
to print out all of the available fonts.