mamaral / Onboard

An iOS framework to easily create a beautiful and engaging onboarding experience with only a few lines of code.
MIT License
6.46k stars 764 forks source link

Presenting Onboard in a UIView instead of full-screen #142

Closed CaptainMack closed 7 years ago

CaptainMack commented 8 years ago

Hi,

I've tried to present the Onboarding view in a uiview, so that i can show two buttons underneath the onboarding slides. Exactly like the Gemr example (https://github.com/mamaral/Onboard/blob/master/Screenshots/gemr.gif) How can this be achieved?

I've tried to add the ViewController to the frame of a uiview like this:

        // Present presentation
        onboardingVC.view.frame = self.introBackgroundView.bounds
        self.introBackgroundView.addSubview(onboardingVC.view)
        addChildViewController(onboardingVC)
        onboardingVC.didMoveToParentViewController(self)
adrianod1as commented 7 years ago

+1

mamaral commented 7 years ago

The Gemr example was creating with a couple minor internal modifications. You'd have to add those buttons manually and update the layout accordingly.