1
0
mirror of git://jb55.com/damus synced 2024-09-16 02:03:45 +00:00

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,18 +63,20 @@ struct ImageView: View {
showMenu.toggle()
})
.overlay(
VStack {
if showMenu {
NavDismissBarView()
Spacer()
if (urls.count > 1) {
tabViewIndicator
GeometryReader { geo in
VStack {
if showMenu {
NavDismissBarView()
Spacer()
if (urls.count > 1) {
tabViewIndicator
}
}
}
.animation(.easeInOut, value: showMenu)
.padding(.bottom, geo.safeAreaInsets.bottom == 0 ? 12 : 0)
}
.animation(.easeInOut, value: showMenu)
.padding(.bottom, Theme.safeAreaInsets?.bottom)
)
}
}