How can I update enum type with a function in swift?
I have an enum which I want toggle it. with a code like this which is accessible from enum type itself, I tried using this code but did not solved the issue:
I have an enum which I want toggle it. with a code like this which is accessible from enum type itself, I tried using this code but did not solved the issue: