- Fist thing, please don’t use localized string with dynamic text, it doesn’t work
- How it works:
enum Status: String {
case verified = "Verified"
case unverified = "Unverified"
var localizedString: String {
switch self {
case .verified:
return NSLocalizedString("Verified", comment: "")
case .unverified:
return NSLocalizedString("Unverified", comment: "")
}
}
}