iOS Swift Tutorial: Material Design Onboarding with Cool Animations
Why Stack Overflow recommends it
Stack Overflow users link it when they are following the PaperOnboarding tutorial and hit errors, and when they need the point where it shows how to send new versus logged-in users to different view controllers.
Recommended by 2 people across 2 different months, 2017 to 2019.
What it is
A 31-minute iOS Swift tutorial by Brian Advent (Daniel Autenrieth's channel) that walks through building a material design onboarding flow with animations, using the Ramotion paper-onboarding library. It includes downloadable project files and a step-by-step build, including routing users based on a stored flag.
What people said
Recommends mur7ay · 2017-07 · Stack Overflow · on “Error Working With Paper Onboarding”
I've been following this tutorial on Youtube: [this video] but I continually get the following error at return and can't find the solution: Cannot convert return expression of type '(String, String, String, String, UIColor, UIColor, UIColor, UIFont, UIFont)' to return type 'OnboardingItemInfo' (aka '(imageName: UiImage, title: String, description: String, iconName: UiImage, color: UIColor, titleColor: UIColor, descriptionColor: UIColor, titleFont: UIFont, descriptionFont: UIFont)') Around the 15:13 minute mark, he shows a functioning app based on the code he provided, yet mine is throwing an error. Here's my code: ... @IBOutlet weak var onboardingView: OnboardingView! override func viewDidLoad()
Recommends A.HEDDAR · 2019-07 · Stack Overflow · on “I want my already logged in users to have my ViewController3 as rootViewController and those who aren't logged in to have ViewController2”
Logged Users -> ViewController3 Not Logged Users -> ViewController2 Check out this video [this video] at [24:38] You need to store a value in default user (Core Data / inside the device Phone). Based on this value feed or not you can redirect users proprely : Add this to your AppDelegate.swift : func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { window = UIWindow(frame: UIScreen.main.bounds) window = UIWindow(frame: UIScreen.main.bounds) let sb = UIStoryboard(name: "ViewController3", bundle: nil) var initialViewController = sb.instantiateViewController(withIdentifier: "Onboarding") let userDefaults = UserDe
Cites Cheetah · 2018-01 · Stack Overflow · on “PaperOnboarding error with OnboardingItemInfo”
I'm following along with this video [this video] . I have copied the code exactly as shown in the video. Around 15:16 he successfully builds the application, however, I get this error: Cannot convert return expression of type '(String, String, String, String, UIColor, UIColor, UIColor, UIFont, UIFont)' to return type 'OnboardingItemInfo' I know others have asked this question in the past, but in their error message, they have something follwing 'OnboardingItemInfo" while mine just ends there. This is my code: @IBOutlet weak var onboardingView: OnboardingView! override func viewDidLoad() { super.viewDidLoad() onboardingView.dataSource = self; } func onboardingItemsCount() -> Int { return 1 } func
Cites user4160399 · 2018-04 · Stack Overflow · on “Swift PaperOnboarding Module Import Error”
I am sorry for such simple question, but I've searched everywhere and read through the paper-onboarding documentation but still can't find a solution to this problem. I am building a simple iOS app project using the paper-onboarding library [LINK] , by following this YT tutorial [this video] . I keep receiving the error: No such module 'PaperOnboarding' import UIKit import PaperOnboarding // <<<ERROR HERE>>> class OnboardingView: PaperOnboarding { /* // Only override draw() if you perform custom drawing. // An empty implementation adversely affects performance during animation. override func draw(_ rect: CGRect) { // Drawing code } */ } I'm not sure how to solve this, could someone shed some ligh