PageView
PageView copied to clipboard
Constraining HPageView width to its child view
In the following scenario I can see all three pages (ImageView) at once and the pages even slide behind "MyLabel". Is there a way to stop that from happening?
HStack{
Text("MyLabel: ")
HPageView(selectedPage: $pageIndex) {
Image1View()
Image2View()
Image3View()
}
}
Hi, sorry for delay. In this case, adding .clipped()
modifier to PageView should solve this.