arcgis-maps-sdk-swift-toolkit
arcgis-maps-sdk-swift-toolkit copied to clipboard
`FloatingPanel` jumps on keyboard disappear
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