It turns out assign(to:) only works for publishers that return a single value, so you need to ignore the error one way or another. You can add .assertNoFailure() or replaceError(with:).
I suppose if we wanted to handle the error, then we would need to put this into an object with a sink and then assign some local properties with the output.
2
Answers
It turns out assign(to:) only works for publishers that return a single value, so you need to ignore the error one way or another. You can add
.assertNoFailure()
orreplaceError(with:)
.I suppose if we wanted to handle the error, then we would need to put this into an object with a sink and then assign some local properties with the output.