arcgis-maps-sdk-swift-toolkit icon indicating copy to clipboard operation
arcgis-maps-sdk-swift-toolkit copied to clipboard

BasemapGallery - Support auto-dismiss on selection

Open dfeinzimer opened this issue 1 year ago • 1 comments

cc @rolson

dfeinzimer avatar Apr 09 '24 17:04 dfeinzimer

I'd like to be able to do something like this:

        .sheet(isPresented: $isBasemapGalleryPresented) {
            BasemapGallery(portal: portal!, geoModel: map)
                .style(.grid(maxItemWidth: 100))
                .onBasemapSelection {
                    isBasemapGalleryPresented = false
                }
        }

Also, I am not sure the geoModel parameter makes sense as nullable currently without something like onBasemapSelection. Otherwise, how would a user make any use of the BasemapGallery?

rolson avatar Apr 09 '24 17:04 rolson