How to deal with weak in closure in Swift
Issue #326
Traditionally, from Swift 4.2 we need guard let self
1 | addButton.didTouch = { [weak self] in |
This is cumbersome, we can invent a higher order function to zip and unwrap the optionals
Issue #326
Traditionally, from Swift 4.2 we need guard let self
1 | addButton.didTouch = { [weak self] in |
This is cumbersome, we can invent a higher order function to zip and unwrap the optionals