How to type cast an Enum to a Double in Swift

后端 未结 0 1434
灰色年华
灰色年华 2020-12-20 00:15

I have a codable Enum, that can take the form of a string OR a double because the JSON response I get can either be in a string or a double. I need to extract the double fro

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