Swift is a new programming language for iOS, watchOS, MacOS, and tvOS apps that build on the best of C & Objective-C, without of the constraints of C compatibility. Swift adopts safe programming patterns and adds modern features to more flexible, make programming easier, and more fun. Swift’s clean slate, backed by the much-loved Cocoa … Continue reading
An Enumeration is a user defined data type which consists of set of related values. To represent Enumeration the keyword is enum which is used to define enumerated data type.
Enumeration in swift 3 is also similar to the structure of C and Objective C.
It is declared in a class and its values are … Continue reading