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

`FloatingPanel` jumps on keyboard disappear

Open CalebRas opened this issue 6 months ago • 0 comments
trafficstars

Issue

When a keyboard is shown over a presented floating panel, it looks like there is some extra empty space added below the panel. When the keyboard is dismissed, the extra space also disappears, causing the panel to "jump". This appears to only be an issue on iPhone.

https://github.com/user-attachments/assets/db15e844-4398-40fe-a48e-6dc6c39d8561

Steps to Reproduce

Display and dismiss a keyboard over a presented floating panel on iPhone.

import ArcGISToolkit
import SwiftUI

struct ContentView: View {
    var body: some View {
        Spacer()
            .floatingPanel(selectedDetent: .constant(.full)) {
                TextField("Text", text: .constant(""))
            }
    }
}

Build and Platform Information

Tested on:

  • Build: 200.7.0
  • O/S: iOS 18.4 & 17.5
  • Device: iPhone 16 and iPhone 15 Pro Max

CalebRas avatar May 13 '25 17:05 CalebRas