Define a variable in swift that can be Int or String

前端 未结 0 624
闹比i
闹比i 2021-01-03 20:12

I am trying to decode the response I am receiving from API, the response can be 0/1/"skip" so it can be Int or String. How do I define this variable? I have tried

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