Build Onboarding Screens in SwiftUI (TabView, PageTabViewStyle, SwiftUI Tutorial, @AppStorage)

preview_player
Показать описание
In this SwiftUI tutorial, we’ll look at how we can add onboarding screens to the start of a SwiftUI app. We’ll look at how we can use SwiftUI @AppStorage, alongside SwiftUI TabView & SwiftUI PageTabViewStyle to easily create an onboarding screen in SwiftUI.

So let’s jump straight into this SwiftUI tutorial.

Timestamps

00:00 Introduction
00:57 Creating our Onboarding Model in Swift
02:02 Creating our Onboarding Screen in SwiftUI
05:08 Creating our Onboarding Screen View in SwiftUI
07:23 Refactoring our code with a Plist & Manager class
21:34 Filling up our Onboarding Screen View
26:20 Adding in our button
27:14 Handling presentation of our onboarding view with @AppStorage
32:23 Presenting our Onboarding View
35:00 How to add new screens
36:00 Wrap up

Build a news app in SwiftUI tutorial series

Build Clubhouse in SwiftUI 2.0 and Dark Mode (SwiftUI Tutorial, SwiftUI 2.0, Clubhouse App Clone)

Getting Started with Combine (Practical Combine Framework Examples in UIKit & SwiftUI)

#swiftuitutorial #swiftuionboardingscreen #swiftuibinding #swiftuiappstorage #swiftuicombine
Рекомендации по теме
Комментарии
Автор

I hope you all had a great weekend, in todays vid we’re going to go through building onboarding screens in SwiftUI & how we can easily manage content within our onboarding screens.

tundsdev
Автор

You are the best instructor I've ever seen in SwiftUI Development. thanks a lot.

김무현-iz
Автор

Fantastic tutorial - one of the best for onboarding I found. Love the plist implementation and very clear explanations. I got this working no issues - THANK YOU Tundsdev!!!!

seancorriel
Автор

Wonderful presentation. In addition to the fantastic content, I like the "fast typing" method followed by your explanations. Seeing all the code as you explain the functionality helps me understand it better. Thank you for your work.

GaryLutchansky
Автор

Love your content and teaching style! This one gives me a lot to study and learn more about. Thanks for sharing your knowledge!

KimbrellBrad
Автор

I love your teachings. They bring so much value. And your small pauses to explain the introduction of a new/unknown aspect carries great value.
I have one question for you:
You define a protocol and then implement a struct or a class using the protocol.
(PlistManagerImpl: PlistManager - and OnboardingContentManagerImpl: OnboardingContentManager )
But when you create variables or constants you define their type as the protocol.
This surprises me. There could be several different classes or structs using the same protocol. So I wonder how can the compiler know that you want to use an implementation when you indicate the protocol?

larschristiansen
Автор

I am very big fan of your modelling

How do you think your protocol and model and use it as dependency injection
If you can make video it will be very helpful👍

Prashant-
Автор

Really enjoyed your teaching style, very good stuff. One question I have which sort of confused me was why you decided to use a plist as an array which appeared to complicate things? Why not just use the Identifiable struct as you had, then just build an array off of that and then iterate over the array to create your screens?

halluxdev
Автор

seems like this process makes complicated .. why not just add struct and create model of data in code and iterate in view .. which makes easy to handle ???

ProductsHub
Автор

Would I be able to use app storage in a scenario where once the user creates an account, and from there taken to a page where they fill in their profile specifics like (weight, height, etc). And once they input the info the page never shows up again? Or is there a better way about going about this? Great video!

tarun_reddy
Автор

i am trying to use image from asset but its not working just showing blank no error pls help

seunoke