Onboard
Onboard copied to clipboard
First page doesn't have padding and other UI tweaks applied to it, but all others do
I have a OnboardingViewController with six OnboardingContentViewControllers. When I apply layout tweaks such as:
ovc.bodyFontSize = 26
ovc.titleFontSize = 36
ovc.iconSize = 350
ovc.underIconPadding = 100
ovc.underTitlePadding = 100
ovc.topPadding = 150
they are applied to the 2nd -> 6th page, but not the first. Screenshot from an iPad attached below.
My complete code for the OnboardingViewController is below: any ideas? Is this perhaps a known bug?
var onboardingVC = OnboardingViewController(backgroundImage: UIImage(named: "onboardBackground"), contents: [firstPage, secondPage, thirdPage, fourthPage, fifthPage, sixthPage])
// Configuration properties of the VC
onboardingVC.shouldFadeTransitions = true
onboardingVC.fadePageControlOnLastPage = false
onboardingVC.shouldBlurBackground = true
onboardingVC.shouldMaskBackground = false
onboardingVC.allowSkipping = false
onboardingVC.hidePageControl = false
onboardingVC.swipingEnabled = false
onboardingVC.bodyFontSize = 22
onboardingVC.iconSize = 250
onboardingVC.view.clipsToBounds = true // Stop bits been shown on pop
if (iPad) {
onboardingVC.bodyFontSize = 26
onboardingVC.titleFontSize = 36
onboardingVC.iconSize = 350
onboardingVC.underIconPadding = 100
onboardingVC.underTitlePadding = 100
onboardingVC.topPadding = 150
}
onboardingVC = adjustOnboardingForScreenSizes(onboardingVC)
// Push the Onboarding View Controller and flip the Status Bar Colour
self.navigationController?.pushViewController(onboardingVC, animated: false)
Any ideas anybody?
Is this still an issue with the most recent version?