swiftyOnboardOverlayForPosition never being called
Malenea opened this issue · 1 comments
Malenea commented
Hello, I tried following the examples, it worked well for the CustomPage, everything shows as expected, unfortunately it's not working for the CustomOverlay... Don't know why... I can modify the elements (i.e the buttons) programmatically but it seems to never update itself.
func swiftyOnboardOverlayForPosition(_ swiftyOnboard: SwiftyOnboard, overlay: SwiftyOnboardOverlay, for position: Double) {
print("====> test <====")
let overlay = overlay as! CustomOverlay
let currentPage = round(position)
overlay.pageControl.currentPage = Int(currentPage)
overlay.buttonContinue.tag = Int(position)
if currentPage == 0.0 || currentPage == 1.0 {
overlay.buttonContinue.isHidden = true
} else {
overlay.buttonContinue.isHidden = false
overlay.buttonContinue.setTitle("Get Started!", for: .normal)
}
}
Test is never printed. And using default overlay gets the controlPage updated but not the buttons.
spaquet commented
Same issue, but only for the index 0.
For all the other pages (index > 0) the changes are applied.