When I apply the scrollview it pushes my whole view up and leaves a white space below the bottom of the ZStack. Not sure why but if someone can please help.
var body: some View { ZStack{ GeometryReader { geometry in Spacer() ScrollView (.vertical, showsIndicators: false) { VStack (spacing : self.Vspacing){ Spacer() ForEach (self.buttons, id: \.self) { row in SportsButtonsRow(screenWidth: geometry.size.width, Hspacing: self.Hspacing, buttons: row, didTapButton: { sportButton in self.displayText = sportButton.title} ) }//end foreach // Spacer () }.background(Color.black)//end of VStack }//end of scroll view }//close geometry reader }//end of ZStack .edgesIgnoringSafeArea(.all) }//end of main some View }
