ui: improve bottom spacing for ImageView's tab indicator dots

Signed-off-by: Bryan Montz <bryanmontz@me.com>
Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
Bryan Montz
2023-09-10 15:01:08 -05:00
committed by William Casarin
parent 0803594553
commit 9bac83352b

View File

@@ -63,6 +63,7 @@ struct ImageView: View {
showMenu.toggle() showMenu.toggle()
}) })
.overlay( .overlay(
GeometryReader { geo in
VStack { VStack {
if showMenu { if showMenu {
NavDismissBarView() NavDismissBarView()
@@ -74,7 +75,8 @@ struct ImageView: View {
} }
} }
.animation(.easeInOut, value: showMenu) .animation(.easeInOut, value: showMenu)
.padding(.bottom, Theme.safeAreaInsets?.bottom) .padding(.bottom, geo.safeAreaInsets.bottom == 0 ? 12 : 0)
}
) )
} }
} }