From 5187ccce735d32758e671efcd180ff82433f5a51 Mon Sep 17 00:00:00 2001 From: Gianmaria Dal Maistro Date: Wed, 16 Mar 2016 16:06:10 +0100 Subject: [PATCH] update ui when view will appear (the first page should have the prevButton hidden also the first time the walkthrough appears) --- Pod/Classes/BWWalkthroughViewController.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Pod/Classes/BWWalkthroughViewController.swift b/Pod/Classes/BWWalkthroughViewController.swift index fd3b15a..789d3c5 100755 --- a/Pod/Classes/BWWalkthroughViewController.swift +++ b/Pod/Classes/BWWalkthroughViewController.swift @@ -141,6 +141,8 @@ At the moment it's only used to perform custom animations on didScroll. override public func viewWillAppear(animated: Bool) { super.viewWillAppear(animated); + updateUI() + pageControl?.numberOfPages = controllers.count pageControl?.currentPage = 0 }