how do we switch through kotlin enums in swift? fi...
# multiplatform
x
how do we switch through kotlin enums in swift? figured it out
a
Kotlin Enums should be converted to SwiftEnums I think. Can you try .<enumvalue> to see if it shows up.
x
Copy code
switch progressState.step {
case .checkingcredentials:
    ProgressView("Checking credentials")
case .registeringdevice:
    ProgressView("Registering device")
case .updatingmanifests:
    ProgressView("Updaing manifests")
default:
    ProgressView("Loading")
}
works the same as swift enums - nice
🆒 1
a
🙂
d
Can I just say @xxfast perfect handling of Slack in the way you edited the question and provided the solution in-thread 👌 Gold standard for us all.
👌 2