You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using version 3.1.0. In swiftui, Pageview does not work when you put it in ScrollView. Probably it is related to nested scrollviews issue. It works when you set frame but the content of the pageview will be dynamic. Is there any trick to solve that issue ?
ScrollView {
PageView(options: getOptions(), items: items, selectedIndex: $selectedIndex) { item in
VStack {
ForEach(0..<100) { i in
Text("\(i)")
}
}
}
}
The text was updated successfully, but these errors were encountered:
@lasodashutosh Not really. Firstly i tried to calculate the height of the inner scroll and set the frame height with that value. It works but then i did not like that solution. Then i remove the upper ScrollView, and put it into PageView.
I am using version 3.1.0. In swiftui, Pageview does not work when you put it in ScrollView. Probably it is related to nested scrollviews issue. It works when you set frame but the content of the pageview will be dynamic. Is there any trick to solve that issue ?
The text was updated successfully, but these errors were encountered: