magic enum type in ios