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:
committed by
William Casarin
parent
0803594553
commit
9bac83352b
@@ -63,18 +63,20 @@ struct ImageView: View {
|
|||||||
showMenu.toggle()
|
showMenu.toggle()
|
||||||
})
|
})
|
||||||
.overlay(
|
.overlay(
|
||||||
VStack {
|
GeometryReader { geo in
|
||||||
if showMenu {
|
VStack {
|
||||||
NavDismissBarView()
|
if showMenu {
|
||||||
Spacer()
|
NavDismissBarView()
|
||||||
|
Spacer()
|
||||||
if (urls.count > 1) {
|
|
||||||
tabViewIndicator
|
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)
|
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user