Skip to content

Commit

Permalink
Refresh controllers array
Browse files Browse the repository at this point in the history
  • Loading branch information
nachonavarro committed Mar 4, 2020
1 parent 8e4755a commit d0d7bca
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Sources/Pages/PageViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
Expand Down

0 comments on commit d0d7bca

Please sign in to comment.