How to check if cases match for two variables in a Swift enum?

后端 未结 0 501
情书的邮戳
情书的邮戳 2021-01-14 06:31

I have a little Swift enum that represents colors:

enum Color {
  case hex(hex: String)
  case grayscale(white: Float)
}

Let\'s say I have tw

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