Last active
September 1, 2017 08:47
-
-
Save d-date/302d12a527319833006efbc2102d6154 to your computer and use it in GitHub Desktop.
12星座.swift
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
enum ZodiacSign: Int { | |
case aries // ♈ | |
case taurus // ♉ | |
case gemini // ♊ | |
case cancer // ♋ | |
case leo // ♌ | |
case virgo // ♍ | |
case libra // ♎ | |
case scorpius // ♏ | |
case sagittarius // ♐ | |
case capricorn // ♑ | |
case aquarius // ♒ | |
case pisces // ♓ | |
/// return Japanese name of asterism | |
var japaneseTitle: String { | |
switch self { | |
case .aries: return "おひつじ座" | |
case .taurus: return "おうし座" | |
case .gemini: return "ふたご座" | |
case .cancer: return "かに座" | |
case .leo: return "しし座" | |
case .virgo: return "おとめ座" | |
case .libra: return "てんびん座" | |
case .scorpius: return "さそり座" | |
case .sagittarius: return "いて座" | |
case .capricorn: return "やぎ座" | |
case .aquarius: return "みずがめ座" | |
case .pisces: return "うお座" | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment