How to make this scrollable view without disturbing the below text which stays there and I can scroll the images one above other.

I want to create a view in which if I scroll images the text below stays and the images also come over another how to make it?

Replies

VStack {
   ScrollView {
      //All of the UI content that should scroll
   }
   Pager { ... }
   Text("The Content outside of the ScrollView stays fixed")
}
  • creating scrollview directly will make all images in a view scroll together and I want only one image to appear and when I scroll then another should be there till then I shouldn't see the new images.

Add a Comment