How can I add a new case
in enum UIModalTransitionStyle?
Is that feasible using swift extension?
Swift document about extension says that: Extensions add new functionality to an existing class, structure, enumeration, or protocol type.
Does it mean, I can create an extension for enum
?
UIModalTransitionStyle has following four cases:
- case coverVertical
- case flipHorizontal
- case crossDissolve
- case partialCurl
I want to add one more case push in it. How can I do that?
I found only this on SO, that doesn't help (or I'm unable to understand, how to use that solution for my problem resolution) :