What is the benefit to use clousers to initialize elements of views over standard variables with setup function?

后端 未结 0 1006
陌清茗
陌清茗 2020-12-11 18:05

What is the profit of using clousers to initialize our views like this:

private let firstView: UIView = {
        let view = UIView()
        view.backgroundC         


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