
Hey guys, how’s it going and welcome to this course where you’ll learn to build beautiful onboarding screens!
In this course, we will be building together 3 different projects of different styles. As onboarding screens are your first impressions to your users, it’s important that this is done correctly because we want to impress them when they first download our app.
This course is designed for beginners and the ideal student is one who has worked with iOS for at least 6-9 months.
In this course, you will learn to build the projects step by step from scratch using the MVC architecture, with Swift 5 and the latest XCode 11.
Let talk about project 1 - the travel app. In this project, you will learn to make use of UIView animation and UIView transitions, as well as the touch gesture to create this effect that you see.
In project 2 - the fashion app, you will learn to code some views programatically, how to cross fade between 2 images, and how to use protocols and delegates to communicate between a child to its parent.
In project 3 - the holiday app, you will learn about AVFoundation by implementing the AVPlayer and the AVPlayerLayer to create a professional looking video backdrop. We will also be using Combine framework to handle the different app states such as AppWillResignActive and AppDidBecomeActive.
So guys, there are many useful concepts you will learn that will expand your ability to build complex features in your development journey. I look forward to seeing you in the lessons. Cheers!
The stock images and video used in our XCode projects are downloaded from https://www.pexels.com/
Introduce the project for building beautiful onboarding screens with Lottie animations and outline goals for the course.
If you want to follow along the tutorial and build the project from scratch, make sure to download image-assets.zip.
To download the finished project, please find onboarding-travel-app.zip
Set up the onboarding UI by creating a new storyboard-based iOS project in Xcode, adding a full-screen background image, a dark overlay, and stacked labels with constraints.
Create and manage onboarding models to display images and captions on onboarding screens, configure a dynamic pitch control, and handle touch gestures to navigate between items.
Learn label animations for onboarding screens by moving the title and detail labels left and up, with alpha fading and spring-damped transitions. Advance the page index to reveal new captions.
Check the last item before transitioning from onboarding to the main app, then instantiate the main view controller and update the window root with a cross-dissolve transition.
Add and animate background images for onboarding screens with a cross dissolve transition, and apply a dark view to improve contrast across travel themed images from assets.
refactor the onboarding module by renaming generic view controller to onboarding view controller, extract the model into onboarding item, and implement place holder items, then build to verify change.
Introduce the project for building beautiful onboarding screens with Lottie animations, outlining the workflow and key concepts for this course.
If you want to follow along the tutorial and build the project from scratch, make sure to download image-assets.zip.
To download the finished project, please find onboarding-fashion-app.zip
Set up the onboarding user interface in Xcode by configuring a horizontal paging collection view, a top-right Nix button, and constraints, with reusable cells and a distinct color scheme.
Learn how to set up container views and onboarding items by configuring collection view cells, adding labels, and binding title and detail text for dynamic onboarding screens.
Master programmatic scrolling of a collection view with a next button, compute next index path from the current index, and synchronize the pitch control to reflect the active item.
Learn to handle background images and transitions in onboarding screens using a scroll view; fade between five asset images to reflect current index.
Show an explore button on the last onboarding slide to transition to the main app, and hide the next button on that final item.
Tap the explore button to transition from onboarding to main app by instantiating the view controller from storyboard, using a delegate from the collection view cell to its parent.
Fix Xcode warning about leading and trailing constraints that cause clipping by wrapping the button in stack view in onboarding and setting auto layout to 36-point margins and 48-point height.
Refactor onboarding components by renaming the onboarding view controller, creating an onboarding item, and organizing code into controller and views, with a static place holder items model.
Launch the project intro for building beautiful onboarding screens with Lottie animations within this course.
If you want to follow along the tutorial and build the project from scratch, make sure to download video-asset.zip.
To download the finished project, please find onboarding-holiday-app.zip
Set up a new Swift single-view iOS project and build an onboarding UI with a full-screen view, vertical stack, label, and a get started button wired to outlets.
Handle the get started button tap by navigating from onboarding to sign up or sign in view, via a view controller embedded in a navigation controller with a back button.
Add a background video backdrop in a view controller using AVPlayer and AVPlayerLayer with resize aspect fill, loading a bundled video sourced from pixels.com.
Manage onboarding states by subscribing to and removing app events, pausing the video when the app background, and resuming it on return, while cleaning up player to prevent memory leaks.
Perform a general refactor by renaming the class to onboarding view controller and tidying the project. Compute a dynamic corner radius from the button height and test the onboarding screen.
Explore how to design beautiful onboarding screens with Lottie animations, starting with the project intro.
Set up a full-screen, vertical paging collection view for onboarding, wire outlets, configure the layout and identifiers, and implement data source and delegate methods to display five colored cells.
Learn to assemble a collection view cell by adding vertical and horizontal stack views, a view and a label, and a get started button with precise constraints.
Create a custom onboarding collection view cell with outlets, actions, and a configure method, using a slide model (title, animation name, button color, title) to drive a two-slide onboarding flow.
Learn to set up and integrate Lottie animations into onboarding screens by downloading JSON assets from LottieFiles, configuring an animation view in iOS, and wiring dynamic animations in your storyboard.
Use a closure to handle the onboarding button, scroll to the next slide in the collection view, detect the last slide, and transition to the main app via storyboard controller.
Add a top-right pitch control that updates as users scroll through onboarding slides and when the next button programmatically advances, using a dynamic page count and proper layout constraints.
Add final touches to onboarding screens by rounding the get started button with corner radius and tightening the top space, then run the app to preview the refined layout.
Learn how to show the onboarding screen only on the first launch by using a loading screen, a navigation manager, and a storage manager with user defaults.
Explore basic git and version control for developers: initialize a repository, check status, commit with clear messages, manage the main branch, and discard changes using Xcode demos.
Welcome to the Build Beautiful Onboarding Screens With Lottie animations course.
This course is designed for iOS developers (6-9 months of experience) who want to build beautiful onboarding screens that can immediately capture your users' attention when they open your app for the first time. This course aims to provide you with the thought process and the techniques required to build a professional looking onboarding view that is both dynamic and easy to customise.
In this course, we will build 4 unique projects of various styles.
In project 1 - the Travel App, we will learn to use UIView animation, UIView transitions and UITapGestureRecognizer to build out the animations.
In project 2 - the Fashion App, we will learn to code some views programatically, how to cross fade between two images, and how to communicate between child and parent objects via protocol and delegates.
In project 3 - the Holiday App, we will learn about AVFoundation via implementing the AVPlayer and the AVPlayerLayer. We will also use the Combine framework to manage the app states.
In project 4 - the Restaurant App (bonus), we will learn how to integrate Lottie animation into our screens.
More projects will be added to this course in 2022 and 2023.