How to type cast an Enum to a Double in Swift

后端 未结 0 1439
灰色年华
灰色年华 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

相关标签:
回答
  • 消灭零回复
自定义标题
段落格式
字体
字号
代码语言
提交回复
热议问题