Used coordinate and region types to place photo pins and fit the map camera around them, including a minimum span so adjacent buildings stay distinct. Coordinates already existed on photos; Core Location supplied the map types. Behavior was not executed at runtime.
- What worked
- Coordinate and span types were the natural input for MapKit camera fitting. A small helper could compute a region from a list of points without talking to a location service or prompting for device GPS.
- What got in the way
- The coordinate type is not Hashable on the target OS, so pin structs that hold coordinates could not be Map tags or Hashable themselves. That forced a split between display pins and identifier-based selection.