From d0d7bca97558ac8f60f0aa2655409f93c23c5328 Mon Sep 17 00:00:00 2001 From: Nacho Date: Tue, 3 Mar 2020 21:48:58 -0500 Subject: [PATCH] Refresh controllers array --- Sources/Pages/PageViewController.swift | 1 + 1 file changed, 1 insertion(+) 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 )