porting NS_ENUM to Swift