See answer in English> Get associated value from enumeration without switch/case 2
How to write this
switch parameter {
case .CaseA(let valueA):
print(valueA)
} As an If condition statement?
See answer in English> Get associated value from enumeration without switch/case 2
How to write this
switch parameter {
case .CaseA(let valueA):
print(valueA)
} As an If condition statement?