When I explored the use of implicit self after unwrapping [weak self]
in Daily Coding Tip 276, it was an example of a new Swift 5.8 feature. That feature made it possible to reference functions and properties inside a closure, but only after optional binding occurs.
With [unowned self]
, the reference to self
is not optional…
Keep reading with a 7-day free trial
Subscribe to Type Safely to keep reading this post and get 7 days of free access to the full post archives.