I used sorted method in Swift in Xcode 6.3 as
sorted(UIFont.fontNamesForFamilyName(familyName) as! [String])
I downloaded Xcode 7 beta, it says "sorted in unavailable, call sort on the collection". Any idea what is going wrong?
I used sorted method in Swift in Xcode 6.3 as
sorted(UIFont.fontNamesForFamilyName(familyName) as! [String])
I downloaded Xcode 7 beta, it says "sorted in unavailable, call sort on the collection". Any idea what is going wrong?
Copyright © 2021 Jogjafile Inc.
Many free functions in swift 1.2 now moved into protocol extensions
In swift book protocol extensions explained like this