Answers for "current case in enum swift"

0

swift enum all cases

enum Animal: CaseIterable {
    case monkey
    case leon
}

Animal.allCases.forEach { print($0) }
Posted by: Guest on February-07-2021

Code answers related to "Swift"

Browse Popular Code Answers by Language