Changed typedef enum to use NS_ENUM macro to make swift compatible