SwiftUI: How to connect currentPage of PageView with firing view's passing index
问题 I follow Apple's example interfacing-with-uikit to use PageView in SwiftUI. And I want to implement it in my app. The scenario is that in MovieView , when the user taps an image of image list then it triggers call to PageView with views and selected index as parameters. But when I click on any item of image list, it always show the page view with the 1st element. I try to change it in init() of PageView , however it is not working. In console, I try to print something, and I see the