We often use enumeration to switch between multiple values. Following is the syntax for creating a enumeration in swift.

enum yourEnumerationName : TypeName {
    case Enum1
    case Enum2

The following shows an example how to access a enumeration of activity indicator in swift

var activityIndicator:UIActivityIndicatorView  = UIActivityIndicatorView(activityIndicatorStyle:

The declaration of UIActivityIndicatorViewStyle is as shown below.

enum UIActivityIndicatorViewStyle : Int {
    case WhiteLarge
    case White
    case Gray