swift: write enums