Using Xcode 7 and swift 2
I have assigned a string for each font in Info.plist -> Fonts provided by application -> Array
How do i loop through all these fonts and assign in for loop
I tried : Output was nil
var familyList = NSBundle.mainBundle().objectForInfoDictionaryKey("Fonts provided by application") as [String]
I came across below code which gives me list of all family names, which i dont need.
I Need same to loop only with fonts i have added.
for family: AnyObject in UIFont.familyNames() {
println("Font Family: \(family)")
for font: AnyObject in UIFont.fontNamesForFamilyName(family as NSString) {
println("Font Name: \(font)")
}
}