Ternary operator and unwrapping with SwiftLint

后端 未结 0 1659
走了就别回头了
走了就别回头了 2020-12-14 12:26

Writing one line code using the ternary operator:

let subtype: String? = ...
let display = subtype != nil ? "\\         


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