Here’s another new Swift 5.8 feature.
In previous versions of the language, it was still necessary to make capture semantics specific after unwrapping [weak self]
. In other words, [weak self] returns an optional version of self that you can unwrap into a non-optional version.
When self is no longer optional, it would ma…
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.