Michael Long
1 min readAug 2, 2019

--

Probably something like…

{
... processing
let error1 = result1
.compactMap { $0.error?.localizedDescription }
let error2 = result2
.compactMap { $0.error?.localizedDescription }
errorMessage = Observable<String>.merge(error1, error2)}

--

--

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