enum Channel: String { case email case push } for token in ["email", "sms", "push"] { print(Channel(rawValue: token)?.rawValue ?? "unknown") }