We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
`import UIKit import Onboard
class ViewController: UIViewController{
override func viewDidLoad() { super.viewDidLoad() } override func viewDidAppear(_ animated: Bool) { super.viewDidAppear(true) let firstPage = OnboardingContentViewController(title: "Welcome to titile 1" , body: "Page body goes here 1.", image: UIImage(named: "finder"), buttonText: "Text For Button") { () -> Void in print("one") } let secondPage = OnboardingContentViewController(title: "Page Title 2", body: "Page body goes here 2.", image: UIImage(named: "icon"), buttonText: "Text For Button") { () -> Void in print("two") } let onboardingVC = OnboardingViewController(backgroundImage: UIImage(named:"background"), contents: [firstPage, secondPage]) firstPage.movesToNextViewController = true secondPage.movesToNextViewController = true onboardingVC?.shouldBlurBackground = true onboardingVC?.allowSkipping = true onboardingVC?.skipHandler = { self.performSegue(withIdentifier: "nextVC", sender: nil) } self.present(onboardingVC!, animated: true, completion: nil) }// end viewDidAppear
}// end here`
The text was updated successfully, but these errors were encountered:
I think you should do like this
onboardingVC?.skipHandler = { onboardingVC?.moveNextPage() }
Sorry, something went wrong.
No branches or pull requests
`import UIKit
import Onboard
class ViewController: UIViewController{
}// end here`
The text was updated successfully, but these errors were encountered: