Chapter 4 - Why is the coordinator necessary?

In chapter 4 we create a coordinator to sync the UISlider with the SwiftUI slider class, could we create a function in ColorUISlider that sets its value when the UISlider value changes instead of using a coordinator? or is there a reason that isn’t possible?

hi Maximilian! I think that’s a question to ask on the Apple forums :wink:

there’s a whole lot of Combine going on below the surface, and this is how the WWDC session said it should work … it’s no different from Apple telling us to use view controllers or delegates or KVO.

if you find another way, let us know?