Skip to content

Swipeable User Onboarding views with main View displaying behind

License

Notifications You must be signed in to change notification settings

apraka16/swipeableOnboardingUIPageView

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Swipeable Card Onboarding UIPageView iOS

Swipeable cards for onboarding.

Code wherein the onboarding screen will be used only once during the lifetime of application, is not introduced in the applicationDidLaunch method (within AppDelegate). It is expected that people using it might introduce that, as it is hardly 4 lines of code. Please note that main purpose was to keep the main View appearing behind the PageViews (or onboarding screens, so that users always have a glimpse of the good stuff lurking behind).

Result

(iPhone Portrait)

enter image description here

(iPad Landscape)

enter image description here

(iPhone Landscape)

enter image description here

Main ViewController is the entry point. Within the main VC, Container VC is used. UIPageViewController is dragged in underlying which three are VCs which would be the pages within the UIPageViewController. After removing the ContainerView's default controller, UIPageViewController is embedded (Enbed Segue) into the ContainerView (which in within the main VC). The whole arrangement looks like:

enter image description here

This way my mainVC can remain the initial VC. I can make my three views smaller with a corner radius, which looks like a popover arrangement, as is what I needed. At the end of it, the result above is the following which is exactly what I want. In case anyone is interest, putting in a pub repo. Tx.

Icons made by Freepik from www.flaticon.com

I am reachable at https://twitter.com/abhinavpraksh for further assistance/ conversation.

About

Swipeable User Onboarding views with main View displaying behind

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages