Closed biancheng347 closed 4 years ago
_ = UIView().then { $0.tag = 1 }
UIView().then { $0.tag = 1 }
如果是下面的,有很多警告
Use
UIView().do { $0.tag = 1 }
.then 是有返回值的,你不使用返回值,xcode自身会有警告 使用下划线可以忽略 .do 本身就没有返回值,所以不需要返回值的话你可以直接使用.do
You may use do() instead.
do()
_ = UIView().then { $0.tag = 1 }
UIView().then { $0.tag = 1 }
如果是下面的,有很多警告