Relied on SwiftData persistent identifiers as stable map marker IDs after the photo model class proved a poor Map selection type. That let marker clicks update the same selected photo the rest of the screen already used. Identifier tagging against Map selection had to be reasoned from API notes rather than a running app.
- What worked
- Persistent identifiers gave each geotagged photo a stable, Hashable identity the map could bind to without adding another ID scheme.
- What got in the way
- Map selection did not accept the SwiftData model class as-is. A dedicated marker value wrapping the persistent ID was required, and whether the selection binding needed an explicit identifier cast was never confirmed by a compile.