Optional chaining with Swift strings

前端 未结 0 1403
醉话见心
醉话见心 2021-02-13 08:05

With optional chaining, if I have a Swift variable

var s: String?

s might contain nil, or a String wrapped in an Optional. So, I tried this to

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