```struct HomePageView: View { @State var size = UIScreen.main.bounds.width / 1.6 var body: some View { GeometryReader{ geometry in NavigationView{ VStack{ ScrollView (.vertical, showsIndicators: true) { anotherView() HStack{ Spacer(minLength: 0) } }.frame(width: geometry.size.width) } .background(Image("background").resizable().scaledToFill().clipped()) .animation(.spring()).background(Color.lairBackgroundGray) .navigationBarItems(leading: Button(action: { self.size = 10 }, label: { Image("menu") .resizable() .frame(width: 30, height: 30) }).foregroundColor(.appHeadingColor), trailing: Button(action: { withAnimation { print("profile is pressed") } }) { HStack { NavigationLink(destination: ProfileView()) { LinearGradient.lairHorizontalDark .frame(width: 30, height: 30) .mask( Image(systemName: "person.crop.circle") .resizable() .scaledToFit() ) } } } ).navigationBarTitle("Home", displayMode: .inline) .animation(.spring()) }.padding(.top, UIApplication.shared.windows.first?.safeAreaInsets.top) HStack{ menu(size: self.$size) // --> Side menu .cornerRadius(20) .padding(.leading, -self.size) .offset(x: -self.size) Spacer().background(Color.lairBackgroundGray) }.padding(.top, UIApplication.shared.windows.first?.safeAreaInsets.top) .animation(.spring()) } } } ```