What is the new syntax for dispatch_once
in Swift after the changes made in language version 3? The old version was as follows.
var token: dispa
Edit
Simple solution is
lazy var dispatchOnce : Void = { // or anyName I choose
self.title = "Hello Lazy Guy"
return
}()
used like
override func viewDidLayoutSubviews() {
super.viewDidLayoutSubviews()
_ = dispatchOnce
}