How can we create unique object list in Swift language like NSSet & NSMutableSet in Objective-C.
NSSet
NSMutableSet
Swift has no concept of sets. Using NSMutableSet in Swift might be slower than using a Dictionary that holds dummy values. You could do this :
Dictionary
var mySet: Dictionary = [:] mySet["something"]= 1
Then just iterate over the keys.