diff --git a/Sources/Pages/PageViewController.swift b/Sources/Pages/PageViewController.swift index c98c1c0..d9bd909 100644 --- a/Sources/Pages/PageViewController.swift +++ b/Sources/Pages/PageViewController.swift @@ -62,6 +62,7 @@ struct PageViewController: UIViewControllerRepresentable { } func updateUIViewController(_ pageViewController: UIPageViewController, context: Context) { + context.coordinator.parent = self pageViewController.setViewControllers( [controllers[currentPage]], direction: .forward, animated: false )