OK, we clearly see the need for more information from our bindings. We would like to where the binding was derived from, and what key paths were used to do the deriving. That would give us the important information we need to distinguish between multiple presented controllers.
But SwiftUI’s Binding
doesn’t give us this information, so it is on us to build our own binding from scratch. It may sound a little intimidating to build something like Binding
from scratch, but it’s not so bad.
Let’s give it a shot.