Fixed animation. Made menu a touch smaller.
This commit is contained in:
@@ -16,7 +16,7 @@ struct SideMenuView: View {
|
|||||||
|
|
||||||
@Environment(\.colorScheme) var colorScheme
|
@Environment(\.colorScheme) var colorScheme
|
||||||
|
|
||||||
var sideBarWidth = UIScreen.main.bounds.size.width * 0.7
|
var sideBarWidth = UIScreen.main.bounds.size.width * 0.65
|
||||||
|
|
||||||
func fillColor() -> Color {
|
func fillColor() -> Color {
|
||||||
colorScheme == .light ? Color("DamusWhite") : Color("DamusBlack")
|
colorScheme == .light ? Color("DamusWhite") : Color("DamusBlack")
|
||||||
@@ -27,7 +27,6 @@ struct SideMenuView: View {
|
|||||||
}
|
}
|
||||||
|
|
||||||
var body: some View {
|
var body: some View {
|
||||||
if isSidebarVisible {
|
|
||||||
ZStack {
|
ZStack {
|
||||||
GeometryReader { _ in
|
GeometryReader { _ in
|
||||||
EmptyView()
|
EmptyView()
|
||||||
@@ -41,7 +40,7 @@ struct SideMenuView: View {
|
|||||||
content
|
content
|
||||||
}
|
}
|
||||||
.edgesIgnoringSafeArea(.all)
|
.edgesIgnoringSafeArea(.all)
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
var content: some View {
|
var content: some View {
|
||||||
@@ -109,8 +108,8 @@ struct SideMenuView: View {
|
|||||||
.foregroundColor(textColor())
|
.foregroundColor(textColor())
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
.padding(.top, 50)
|
.padding(.top, 60)
|
||||||
.padding(.bottom, 50)
|
.padding(.bottom, 40)
|
||||||
.padding(.leading, 40)
|
.padding(.leading, 40)
|
||||||
}
|
}
|
||||||
.frame(width: sideBarWidth)
|
.frame(width: sideBarWidth)
|
||||||
|
|||||||
Reference in New Issue
Block a user