diff --git a/iOS/Views/Common/MainTabView.swift b/iOS/Views/Common/MainTabView.swift index dcff141..4e39df8 100644 --- a/iOS/Views/Common/MainTabView.swift +++ b/iOS/Views/Common/MainTabView.swift @@ -32,6 +32,7 @@ struct MainTabView: View { private let accentPink = Color(red: 1.0, green: 0.176, blue: 0.333) var body: some View { + GeometryReader { rootGeo in ZStack { // Main tab content ZStack(alignment: .bottom) { @@ -121,7 +122,7 @@ struct MainTabView: View { } .onEnded { value in isDragging = false - let screenH = UIScreen.main.bounds.height + let screenH = rootGeo.size.height let velocity = value.predictedEndTranslation.height let dragPct = abs(value.translation.height) / screenH @@ -198,6 +199,7 @@ struct MainTabView: View { } } } + } // GeometryReader } // MARK: - Debug Panel