How to write a function that compares an enum with an enum case in Swift

前端 未结 0 1618
一生所求
一生所求 2021-02-13 22:53

Would it be possible in Swift to write a function that takes an enum and an enum case and compare them?

Below is the example use case, how would you write isSameAct

相关标签:
回答
  • 消灭零回复
提交回复
热议问题