Michael Long
Mar 14, 2021

--

You can do that, and I have, when I don’t care about the rhs of the expression. But what about?

.subscribe(onNext: { owner?.value = owner?.value + $0 })

Or…

.flatMap { owner?.anotherNetworkRequest($0) }

Neither will work w/o unwrapping owner.

--

--

Michael Long
Michael Long

Written by Michael Long

I write about Apple, Swift, and SwiftUI in particular, and technology in general. I'm also a Lead iOS Engineer at InRhythm, a modern digital consulting firm.

No responses yet