When I add a FloorFilter to my map, then open and close the SiteAndFacilitySelector, then the SiteAndFacilitySelector shows again every time the map is panned (see video)
This can be fixed by not using a .constant binding as shown in the following screenshot.
Also, as a sidenote, you do not need to pass the $isSitesAndFacilitiesHidden to all the subviews in order to dismiss the sheet. You can use a '@Environment(.dismiss) private var dismiss' in the corresponding views, which simplifies the code a little bit.
When I add a FloorFilter to my map, then open and close the SiteAndFacilitySelector, then the SiteAndFacilitySelector shows again every time the map is panned (see video)
This can be fixed by not using a .constant binding as shown in the following screenshot.
Also, as a sidenote, you do not need to pass the $isSitesAndFacilitiesHidden to all the subviews in order to dismiss the sheet. You can use a '@Environment(.dismiss) private var dismiss' in the corresponding views, which simplifies the code a little bit.
https://github.com/Esri/arcgis-maps-sdk-swift-toolkit/assets/5672716/220d1447-0d45-417b-b178-3f3b286ea37d