Skip to content

Commit 828c54c

Browse files
authored
Merge pull request #480 from Esri/Caleb/Fix-WorkaroundMapViewKeyboardBug
[Fix] Work around map view keyboard jump bug
2 parents cb292eb + c58043e commit 828c54c

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Shared/Samples/Browse building floors/BrowseBuildingFloorsView.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ struct BrowseBuildingFloorsView: View {
4848
withAnimation { attributionBarHeight = height }
4949
}
5050
.errorAlert(presentingError: $error)
51-
.ignoresSafeArea(.keyboard, edges: .bottom)
5251
.overlay(alignment: .bottomTrailing) {
5352
if isMapLoaded,
5453
let floorManager = map.floorManager {

Shared/Supporting Files/Views/SampleLink.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ struct SampleLink: View {
3434
NavigationLink {
3535
SampleDetailView(sample: sample)
3636
.id(sample.name)
37+
// Workaround for bug that causes a map view to jump to the bottom
38+
// of its map when a keyboard is presented in landscape mode.
39+
.ignoresSafeArea(.keyboard, edges: .bottom)
3740
} label: {
3841
SampleRow(
3942
name: sample.name.boldingFirstOccurrence(of: textToBold),

0 commit comments

Comments
 (0)