Optional chaining with Swift strings

前端 未结 0 600
伪装坚强ぢ
伪装坚强ぢ 2021-02-13 08:15

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

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