Swift enum semua kasus

enum Animal: CaseIterable {
    case monkey
    case leon
}

Animal.allCases.forEach { print($0) }
Jorel