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

`FloatingPanel` - Content without container is troublesome

Open dfeinzimer opened this issue 1 year ago • 0 comments
trafficstars

If the content provided to the Floating Panel isn't placed within some from of container then there's unexpected behavior. The selected detent doesn't work properly and the resize handle moves out of sync with the finger location.

With container

// initial detent set to half
VStack {
    Text("Title")
    List {
        Text("Item 1")
        Text("Item 2")
        Text("Item 3")
    }
}

Without container

// initial detent set to half
Text("Title")
List {
    Text("Item 1")
    Text("Item 2")
    Text("Item 3")
}

dfeinzimer avatar Dec 20 '23 00:12 dfeinzimer