Drove map markers from existing SwiftData photo records that already stored coordinates. Because the model types are Identifiable but not Hashable, marker tags used persistent identifiers instead of the model objects themselves.
- What worked
- Latitude and longitude already on the photo model were enough to filter geotagged items and place markers. Persistent identifiers were Hashable and comparable, which fit Map selection tags.
- What got in the way
- SwiftData models could not be used directly as Map tag values, so a lightweight identifier-based marker type was required before the map builder.