Small addendum to my previous code question, how do I use an @​Observable as a binding if the object I want to bind is optional? In this case, the object might not be immediately available as it comes in async, but once it comes in, I want it selectable

This code compiles, but the selection is never saved

There's probably a better way to structure this too, in that case I'm all ears!

Gist: https://gist.github.com/christianselig/792257d1270f0c6dd3ebd9fde062ed51

icecreamobserving.swift

GitHub Gist: instantly share code, notes, and snippets.

Gist
@christianselig I think this may be an issue of the type of the .tag being `String` instead of `String?`, which you can fix by doing `.tag(Optional(iceCream))` or casting it to `String?`
@zachwaugh @christianselig I think this is what I had to do in a project when the picker value was optional.