SwiftUI page control implementation

I need to implement something like an animated page control. And I don't want to use integration with UIKit if possible. And running into some strange behaviour. Maybe I'm just using it wrong, in which case please help me understand how to do it right. And maybe it is indeed a bug. Here is a link with all the info and code needed. #[https://stackoverflow.com/questions/57391615/swiftui-page-control-implementation?noredirect=1#comment101302276_57391615]


XCode Version 11.0 beta 4, macOS Catalina 10.15 Beta

Replies

Please copy the relevant code here.


As mentioned in SO, this is not a Swift question, but a SwiftUI.