COMPLETE User Login / Sign Up App | Swift UI + Firebase | Async / Await

  Рет қаралды 58,531

AppStuff

AppStuff

Жыл бұрын

Everything you need for user authentication using the latest and greatest technology with Swift, SwiftUI And Firebase
🔴 Become a member to access Exclusive Content & Source Code :
www.stephancodes.com/plans-pr...
🔴Navigation Stacks:
• This NEW SwiftUI Featu...
🔴Async/AwaitNavigation Stacks:
• How to Network Like A ...
🔴@State vs @Binding video:
• NEVER Confuse @State v...
🖥️ ONLINE COURSES & APPS
👉 Pro Courses:
www.stephancodes.com/videos
👉 FREE UBER SwiftUI Course
• 🔴 Let's Build UBER wit...
👉 iOS App Templates:
www.stephancodes.com/shop
👉 FREE Twitter SwiftUI Course
• 🔴 Let's Build Twitter ...
Social Media:
Instagram - @stephan.dowless

Пікірлер: 113
@richutrapbands
@richutrapbands Жыл бұрын
Aye man, this tutorial was insanely helpful. Hope you're doing well and I really appreciate you taking the time to put this content together and publish it for people to watch and learn from. Cheers
@stonebird19
@stonebird19 Жыл бұрын
I’m only halfway through but I just wanted to say that I’ve been looking for a tutorial like this for around 3 months. You’ve nailed it. I’ve been able to perform all these elements in isolation but I’ve struggled to tie it all together. This tutorial is the holy grail of User Auth through to personalised profile.
@SeanforNarnia17
@SeanforNarnia17 Жыл бұрын
Love this! Getting my toes wet with SwiftUI and wanted to rewrite an android app that I had created with Firebase as my backend and react native as the front. This was exactly what I needed to get started with the Swift version!
@ilyas8523
@ilyas8523 Жыл бұрын
I usually find most KZfaqrs' memberships a scam, but not this time. Once I am done with this video, I'll join. Very useful video dude, a lot of hard work. Thank you.
@dussio22
@dussio22 11 ай бұрын
Thank you Stefan! This course was insane. you have amazing courses..clean and acurates! Also, you have a great speaaching,super clean! It helps me a lot to train my English. greetings from Argentina
@futuleta
@futuleta 7 ай бұрын
Stephan you are the best swiftUI tutor on youtube thanks! Clear Coding & Every Phase Explained with Detail
@stonebird19
@stonebird19 Жыл бұрын
OK, so I watched the second half and I was correct: it's the Holy Grail of User Auth through to personalised profile. I'll be subscribing to your website content today as I'm really happy with how this tutorial has solved my initial application challenges. Really easy to follow and understand; really easy to implement the guidance. I can't thank you enough. Deano from the UK.
@appstuff5778
@appstuff5778 Жыл бұрын
Appreciate that Deano! Wait until you see what’s next!
@zaidmaraqa5360
@zaidmaraqa5360 11 ай бұрын
Hi stefan, thank you so much. this has been the easiest tutorial to follow! thank you!
@cfa532
@cfa532 2 ай бұрын
Great tutorial. I can reuse almost everything I learnt here. I also really appreciate a native speaker without India, Russia or Germany accent 😀, which tends to get me sleepy really quick.
@ida.angelma
@ida.angelma 4 ай бұрын
Such high quality tutorial! 10/10 Thanks so much for this video!
@Testtesztest12123
@Testtesztest12123 Жыл бұрын
Awesome. Thanks for your effort!
@FRkiddo
@FRkiddo Жыл бұрын
awesome, got it all working, not sure how I would have ever achieved this with just the google documentation because it is pretty sketchy especially for SwiftUI
@BitHub01
@BitHub01 4 ай бұрын
I love this. Thanks Stefan
@keremoflu
@keremoflu 4 ай бұрын
It was great, thanks!
@bocetta8936
@bocetta8936 Жыл бұрын
very clean job I love it
@JavierSanchez-yp1bl
@JavierSanchez-yp1bl 6 ай бұрын
Awesome, thanks!
@Aymen_Raeed
@Aymen_Raeed 10 ай бұрын
Wow thanks man you’re the best
@lucrieffel5018
@lucrieffel5018 2 ай бұрын
Thanks!
@CipherLunis
@CipherLunis 9 ай бұрын
Very helpful!
@dhedges1340
@dhedges1340 10 ай бұрын
The sheer panic when he left halfway through the firebase activation tutorial lol. If anything this tutorial has taught me how to solve a lot on my own. Just kidding this is actually a pretty great video thank you for releasing this.
@marshalllll
@marshalllll 5 ай бұрын
thanks bro helped a ton
@nicolascarrillo1080
@nicolascarrillo1080 7 ай бұрын
why do I keep getting preview crashed when we make the AuthViewModel to try and test to see if it is printing our statements?
@michamichalik9719
@michamichalik9719 Жыл бұрын
Great stuff
@ahmed-aw
@ahmed-aw Жыл бұрын
Your tutorial is exceptionally helpful, thank you so much! One issue though, when I login or create new user it won't take me to my main page, both functions working fine but they redirect me only to login page, I think it has something to do with userSession and I'm still trying to figure it out.
@ZiedMcHarek
@ZiedMcHarek 3 ай бұрын
In a professional video, thank you very much. Could you also extend it to include third-party sign-in methods like Google and Apple? That would be super cool.
@jonathanboisvert102
@jonathanboisvert102 Жыл бұрын
What's a good resource for Navigating between views changing view when logged in state objects binding etc.? any books or lessons you would recommend ?
@omggodbs
@omggodbs Жыл бұрын
Hey, so if I implement this, how would I have the user be able to navigate to the actual part of the app after authenticating from the login page?
@Broncos10499
@Broncos10499 Жыл бұрын
Any help for nested collections in the User collection? Thx
@sageoflearning
@sageoflearning 11 ай бұрын
Excellent
@Toluol80
@Toluol80 Жыл бұрын
Hi Stefan, you have a clear coding style and absolutely useful video tutorials. Could you please make the Xcode font bigger, when you record the videos? Because it's hard to see the code on a 13" MacBook) Best of luck with your new job and thanks for your contribution to teaching others SwiftUI.
@mrjiggawatt
@mrjiggawatt 9 ай бұрын
I agree. I’m watching on my iPhone and I keep having to zoom in. Bigger font, please. 😊
@chepparmaps
@chepparmaps 11 ай бұрын
Awesome tutorial. Please breakdown your topic into sections. Good work.
@fabiofloris2521
@fabiofloris2521 Жыл бұрын
hello could you show us how to adapt the nlogin with ios 17 @observable instead of ObservableObject? Thanks again for your tutorials they are very helpful and professional😊
@mohamethseck
@mohamethseck Жыл бұрын
This is 🔥! Please do one with firestore database and storage 🙏🏽
@kenyaalvarez2621
@kenyaalvarez2621 10 ай бұрын
Hello! Great video but I have a problem in login, when I click in button login I cannot access to a other view. I have access when I close to application and reopen it. There is no way to change that so that I can click on the login button then immediately see the other view at that moment without having to exit the application and reopen it?
@mansamusa8653
@mansamusa8653 9 ай бұрын
Great 👍
@lilstunna
@lilstunna 8 ай бұрын
I am stuck at 1:21:26 since my build says “Thread 1: “Default app has already been configured.” Any tips/fixes?
@BradCaldwellAuburn
@BradCaldwellAuburn 8 ай бұрын
L:ooks like a tremendous tutorial but I was really hoping to find instruction on just the pre-built Firebase email auth UI in swift - like how to make their pre-built thing pop up.
@SheCoderrInc
@SheCoderrInc 8 ай бұрын
creating the user data model: @Published var userSession: FirebaseAuth.User? swift is not detecting the User? and not connecting the "fullname" from registration view 'button'. I have @State private var fullname = " " ; so it's set as an empty string but when i erase and retype, clean build, still the same error. any advice?
@vittyfiorentini238
@vittyfiorentini238 Жыл бұрын
Hi, updating xcode to 14.3 i receive the log "[PipelineLibrary] Mapping the pipeline data cache failed, errno22" when adding the MapView in the viewcontroller. I Receive this error only when i test on a real device not in the simulator. Can i fix it ? Is a common problem? Thanks for the time I appreciate so much.
@SheCoderrInc
@SheCoderrInc 8 ай бұрын
In the AuthViewModel swift is rejecting the "fullname" created in the user data model error: cannot find "fullName" in scope msg. any advice on how to fix. i tried retyping, clearing cache, closing and re-opening excode.
@SheCoderrInc
@SheCoderrInc 8 ай бұрын
I fixed the issue!!
@AvengeTheBlade
@AvengeTheBlade 9 ай бұрын
Great tutorial man! I really learned a lot following along and incorporating this into my senior project 👍🏽 I just had a quick question, do you have a good idea as to how I should handle two different account types using Swift and Firebase? My current app is meant for a school and contains both teacher and student accounts with different settings. When looking this up, it seems like Firebase has no way to differentiate between these two different accounts so I’m not 100% sure how I should go about doing this. Do you have any ideas?
@anudeepananth
@anudeepananth 6 ай бұрын
When a user is created ask them if they are a student or teacher, add a field to the user class to know if it is student or teacher, save that info locally and at firestore, then whenever a user logs in and fetches their user doc from firestore navigate them to student dashboard or teacher dashboard accordingly. Firebase auth does not save custom user types.
@zeequreshi1607
@zeequreshi1607 9 ай бұрын
When I add ProfileView as shown on 1:04:49 it says it’s not in the scope, how can I fix this?
@ecptavares
@ecptavares 10 ай бұрын
Hi! Im getting an error at the file SwiftAuthTutorialApp saying "Missing an argument for parameter 'viewmodel' in call. How do I fix this please? Thank u
@tomgedas
@tomgedas 8 ай бұрын
It's a great tutorial for beginners, I am a Flutter programmer looking to start also coding with swift. But I was missing some extra things to make the features more clean. -auth and user should be separate view models (on firestore create error the auth fails but it shouldn't + fetch user would be in separate view model) -should create a service class for abstracting the way in which you get something from firestore, auth. -Should have a listener for auth state. If during app runtime the session stops the state should also be changed -I would not get user right away since auth might work but firestore data might fail in this case only user data screens would have error -there should be a better handling of forms using abstractions, also with input control error messages. -some other things I don't think it is good to leave it as it is when teaching this because as apps get bigger everything gets harder and harder to manage with a messy structure so I think would've been better to show everything as cleaner as you can with managing your data if you are aiming to teach people how to build apps because right now it would be leading them to a path which is blocked halfway.
@appstuff5778
@appstuff5778 8 ай бұрын
Completely agree with all points, but this is definitely for beginners, and it’s also free lol
@tomgedas
@tomgedas 8 ай бұрын
ye I thought so that maybe simplified so that it would be easier to pickup ;D@@appstuff5778
@iLoveAppl3947
@iLoveAppl3947 2 ай бұрын
good points. Spent a day to learn this crap...
@iLoveAppl3947
@iLoveAppl3947 2 ай бұрын
@@appstuff5778so if its free it means you can spill out this crap on the internet right? Guess what... ChatGPT can refactor all the code to implement the above points and guess what... its free !
@designckinet
@designckinet Жыл бұрын
Really cool tutorial!
@onuraltntas3940
@onuraltntas3940 Жыл бұрын
Hello, your content is great and I am moving towards the goal of being an ios developer with your videos. My English is not very good and I would like to ask, do you have a chance to add Turkish subtitles to your videos? BTW I am learning English
@saraelkilany3651
@saraelkilany3651 24 күн бұрын
Thank you so much. I keep getting the error "Cannot show Automatic Strong Passwords for app bundleID: ____ due to error: iCloud Keychain is disabled" - any recs on how to avoid this?
@adamdono2090
@adamdono2090 Жыл бұрын
created everytging but my navlinks and buttons doesnt navigate to another screen its literally unclickable
@andreas39157
@andreas39157 9 ай бұрын
Can't find this on your web page?
@dimitriborgers9800
@dimitriborgers9800 10 ай бұрын
Hi Stefan, on the LoginView, how come you don't have to add .environmentObject(viewModel) to the NavigationLinks? Aren't these creating separate branches, thus requiring you to pass it through?
@aliteshnizi672
@aliteshnizi672 8 ай бұрын
I believe once you create the environmentObject, it doesn't need to be passed through. That's kind of the point of environmentObjects. They're present in the environment and you can access them in all views without the need to pass them down.
@tiberiusrubicon9261
@tiberiusrubicon9261 7 ай бұрын
Navigation links as way to change user_state is not secured and is not so good way.
@pietertsie
@pietertsie Жыл бұрын
Great tutorial, the only thing missing is the delete account function.
@appstuff5778
@appstuff5778 Жыл бұрын
That’s available in the completed source code
@pasqualegermano3570
@pasqualegermano3570 10 ай бұрын
Hello Stephan. Very useful tutorial! Thanks to share it. I have a problem. Not immediately but some time after I found this strange error message "No type named 'User' in module 'FirebaseAuth' " at line FirebaseAuth.User?..... why? Do you know if it's a bug? Thanks for any suggestions.
@andiraynth
@andiraynth 10 ай бұрын
I think it's a bug. I got that problem too, so I just recreate new projects and add Firebase by Cocoapods (not Package Dependecies), so when I include the pod 'FirebaseAuth', the error message is gone ...
@futuleta
@futuleta 7 ай бұрын
Teşekkürler.
9 ай бұрын
Do you have any tutorial about a Login using SwiftUI and php mysql instead of firebase? thanks
@appstuff5778
@appstuff5778 9 ай бұрын
No, just Firebase
@ykkingdoms3126
@ykkingdoms3126 7 ай бұрын
why i cannot get my backend data in firebase? this is my error DEBUG : Failed to log in with error The supplied auth credential is malformed or has expired.
@daryakuliashova6062
@daryakuliashova6062 11 ай бұрын
Hi Stefan, do you have an idea how can I solve the issue with Firestore? After creating a new user, my Firestore Storage is not populated with user data and remains blank. Would really appreciate any suggestion! Thanks!
@aliciaweenum1248
@aliciaweenum1248 7 ай бұрын
did you solve this? I'm going through a similar thing. mine doesn't seem to be communicaitng with Firebase once I try to create a userSession
@Monkeymanandfriends
@Monkeymanandfriends 2 ай бұрын
It is showing 2 views at once. The login and profile why?
@YuDikNg_hk
@YuDikNg_hk 7 ай бұрын
why i can’t search firebase’s package?
@alexanderlechowicz9187
@alexanderlechowicz9187 Жыл бұрын
Is the other video thats the second part to this linked in here anywhere? Or is that something on your site that I can buy?
@appstuff5778
@appstuff5778 Жыл бұрын
If you subscribe on my website you get automatic access to the source code, which includes additional features not provided in this video. Link is in the description :)
@alexanderlechowicz9187
@alexanderlechowicz9187 Жыл бұрын
@@appstuff5778 Thanks for the response, just curious, What features does the source code have? Does it have google and apple logins ? Or does it just have google?
@bennymartensson
@bennymartensson Жыл бұрын
Great work, thanks a lot! This made me buy a subscribtion on your site. But, I've even copied your code but still I get an error in the AuthViewModel - @Published var userSession: FirebaseAuth.User? - saying: "No type named 'User' in 'FirebaseAuth'. Any ideas?
@appstuff5778
@appstuff5778 Жыл бұрын
The code will still run with that error. It’s a firebase issue
@fredylopez529
@fredylopez529 Жыл бұрын
Top Notch sir! One issue: I am unable to find FirebaseAuth in shop @ 54:54. I don't know if anyone is having this problem. I did import Firebase.
@fredylopez529
@fredylopez529 Жыл бұрын
Solved it! you need to import FirebaseAuth on it's own. Seems to be an issue Firebase had had for years and have not fixed.
@brambi001
@brambi001 6 ай бұрын
How did you import it?@@fredylopez529
@abdullohbahromjonov781
@abdullohbahromjonov781 10 ай бұрын
from his ig u can't tell he is a software engineer
@harishkathir4028
@harishkathir4028 Жыл бұрын
firestore database doesn't create any user collections and profile view looks blank,! can you please help me ? i completed everything in the video and app does login but firebase does not create any records for users , i did created three different users , it shows the user in the authentication though
@daryakuliashova6062
@daryakuliashova6062 11 ай бұрын
I'm having the same issue. I hope Stefan will notice and help us solve this problem :)
@andiraynth
@andiraynth 10 ай бұрын
Me too.. my profile view went blank.. and it's always print that current user is nil?
@iLoveAppl3947
@iLoveAppl3947 2 ай бұрын
@@andiraynth this is the problem of content creators spilling out their crap on the internet without updating or checking on a monthly basis if the project still works... the disregard for people is mind blowing
@rank1macro
@rank1macro Жыл бұрын
Great to see you again brother! Hope you doing good. You still work at Meta since you mentioned 'switch jobs'? Peace
@appstuff5778
@appstuff5778 Жыл бұрын
No longer with Meta! It was time to move on ➡️➡️
@rank1macro
@rank1macro Жыл бұрын
@@appstuff5778 I imagine it could have been tough, but probably still a great learning experience. Thanks for a new video, will def study this one while waiting for Leetcode course if that is still coming ✌️
@marior5361
@marior5361 Жыл бұрын
I can’t preview the profile page with the finished code, why is that?
@saulg97
@saulg97 Жыл бұрын
Same here
@ricardokaka8896
@ricardokaka8896 7 ай бұрын
Have you found a solution for this? I can't preview it either. It works in the build but not in the preview. Thanks.
@user-go7xq8tn3j
@user-go7xq8tn3j Жыл бұрын
Hey ppl help me please I deleted user from firebase when I was logged in. Now I can’t create new users/log in and I can’t go to profile. It says “the current user is nil”. How can I fix that????
@chepparmaps
@chepparmaps 11 ай бұрын
This error occurred. Please repeat the course from @ 54:00
@user-go7xq8tn3j
@user-go7xq8tn3j 11 ай бұрын
@@chepparmaps thanx
@brambi001
@brambi001 6 ай бұрын
I have a problem with Firebase Auth, what should i do if i installed the package but it says "can't find FirebaseAuth in scope"?
@user-rs9rr2bx4p
@user-rs9rr2bx4p 5 ай бұрын
What if you use 'import FirebaseAuth' instead of 'import Firebase'?
@danlaratta
@danlaratta 4 ай бұрын
I had the same issue what fixed it for me was removing the package, manually delete the cached files present in ~/Library/Caches/org.swift.swiftpm/, then add the package again.
@pbbaits3105
@pbbaits3105 20 сағат бұрын
yes importing 'FirebaseAuth' worked for me with that problem.
@AppWorksLabs
@AppWorksLabs Жыл бұрын
@1:07:00 The Auth.auth() is either deprecated or there's something I missed. it's saying Cannot find Auth in scope. Any suggestions?
@appstuff5778
@appstuff5778 Жыл бұрын
Your project should still build and run. This is like some sort of ghost error, it shows up as an error in the editor but when you run the project it works 🤷🏻‍♂️
@AppWorksLabs
@AppWorksLabs Жыл бұрын
@@appstuff5778 Is there something I'm supposed to import besides Firebase and FirebaseFirestoreSwift?
@AppWorksLabs
@AppWorksLabs Жыл бұрын
Solution: for anyone who does the same thing I named my project FirebaseAuth, this ended up messing up everything. Otherwise once I changed the name everything worked perfectly.
@dslkgjsdlkfjd
@dslkgjsdlkfjd Жыл бұрын
Craziest thing in the video was the MJ take
@richutrapbands
@richutrapbands Жыл бұрын
Had the same thought lmaoo, I followed along with everything except for that. LeBron the goat
@schahinali
@schahinali 4 ай бұрын
👍
@Cuvsie
@Cuvsie 3 ай бұрын
Amazing video, this has been so helpful. Just curious but when Ive added in the checkmark.circle.fill & xmark.circle.fill in the profileview file it shows the gear image used in the version section , how do I fix this to show the xmark and checkmark? Also, how do I change the page colors?
@iLoveAppl3947
@iLoveAppl3947 2 ай бұрын
Use a form instead of the List...also use Label instead of his crap
Swift API Calls for Beginners (Networking) - Async Await & JSON
25:35
Идеально повторил? Хотите вторую часть?
00:13
⚡️КАН АНДРЕЙ⚡️
Рет қаралды 10 МЛН
Comfortable 🤣 #comedy #funny
00:34
Micky Makeover
Рет қаралды 9 МЛН
Finger Heart - Fancy Refill (Inside Out Animation)
00:30
FASH
Рет қаралды 29 МЛН
ЧУТЬ НЕ УТОНУЛ #shorts
00:27
Паша Осадчий
Рет қаралды 10 МЛН
When RESTful architecture isn't enough...
21:02
Dreams of Code
Рет қаралды 266 М.
The Big Headless CMS Lie (James Mikrut)
18:14
Vercel
Рет қаралды 52 М.
Play: The Secret Weapon for iOS Devs & Designers
10:12
Sean Allen
Рет қаралды 25 М.
🔴 NEW SwiftUI Airbnb Clone | iOS 17 | Xcode 15
3:09:05
AppStuff
Рет қаралды 43 М.
This NEW SwiftUI Feature Is AMAZING | Navigation Stacks
20:05
Опасность фирменной зарядки Apple
0:57
SuperCrastan
Рет қаралды 12 МЛН
Better Than Smart Phones☠️🤯 | #trollface
0:11
Not Sanu Moments
Рет қаралды 19 МЛН