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

  Рет қаралды 70,888

AppStuff

AppStuff

Күн бұрын

Пікірлер: 137
@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.
@BreakingBarriers2DIY
@BreakingBarriers2DIY 15 күн бұрын
Thanks !I've tried following the structure of several different individuals (and they were all very knowledgeable...just I'm new) and your way of setting it up AND explaining it really inspires me to start from the very beginning and rebuild it proper. I'm so grateful to have seen this video.
@appstuff
@appstuff 14 күн бұрын
Thank you!
@ilyas8523
@ilyas8523 Жыл бұрын
I usually find most KZbinrs' 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.
@lucrieffel5018
@lucrieffel5018 7 ай бұрын
Thanks!
@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.
@appstuff
@appstuff Жыл бұрын
Appreciate that Deano! Wait until you see what’s next!
@ahmedsumon
@ahmedsumon 4 ай бұрын
Fantastic Tutorial! This tutorial was exactly what I was looking for! The step-by-step guidance on building a complete User Login/Sign Up app using SwiftUI, Firebase, and Async/Await was top-notch. Everything was explained clearly, from setting up Firebase to implementing smooth authentication workflows, making it easy to follow even for those new to these tools. Thank you for providing such a well-organised and practical guide! It’s packed with useful insights, and I can't wait to see more tutorials like this in the future. Keep up the great work! 🙌
@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
@futuleta
@futuleta Жыл бұрын
Stephan you are the best swiftUI tutor on youtube thanks! Clear Coding & Every Phase Explained with Detail
@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 Жыл бұрын
I agree. I’m watching on my iPhone and I keep having to zoom in. Bigger font, please. 😊
@dussio22
@dussio22 Жыл бұрын
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
@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!
@tomgedas
@tomgedas Жыл бұрын
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.
@appstuff
@appstuff Жыл бұрын
Completely agree with all points, but this is definitely for beginners, and it’s also free lol
@tomgedas
@tomgedas Жыл бұрын
ye I thought so that maybe simplified so that it would be easier to pickup ;D@@appstuff
@Spacer-l3j
@Spacer-l3j 8 ай бұрын
good points. Spent a day to learn this crap...
@Spacer-l3j
@Spacer-l3j 8 ай бұрын
@@appstuffso 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 !
@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?
@clearthinking5441
@clearthinking5441 4 ай бұрын
This is pure gold.
@futuleta
@futuleta Жыл бұрын
Teşekkürler.
@dhedges1340
@dhedges1340 Жыл бұрын
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.
@nicolascarrillo1080
@nicolascarrillo1080 Жыл бұрын
why do I keep getting preview crashed when we make the AuthViewModel to try and test to see if it is printing our statements?
@nickironfield
@nickironfield Ай бұрын
Did you ever figure this out?
@rouziuzi
@rouziuzi 3 ай бұрын
Thanks, very helpful tutorial. I'm coming from a .NET background with 5 years of experience, and this looks very clear. Regarding binding, it is quite similar to the WPF Telerik / MAUI bindings.
@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
@cfa532
@cfa532 8 ай бұрын
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.
@ZiedMcHarek
@ZiedMcHarek 9 ай бұрын
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.
@keejay98195
@keejay98195 23 күн бұрын
1:24:00 could you also just set currentUser = user in createUser instead of refetching?
@MetehanCanpolat
@MetehanCanpolat 5 ай бұрын
After setting up this system, do we need to set up a JWT site? Does this system include a JWT? I would be very happy if you could answer.
@AvengeTheBlade
@AvengeTheBlade Жыл бұрын
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 Жыл бұрын
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.
@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 ?
@zaidmaraqa5360
@zaidmaraqa5360 Жыл бұрын
Hi stefan, thank you so much. this has been the easiest tutorial to follow! thank you!
@pasqualegermano3570
@pasqualegermano3570 Жыл бұрын
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 Жыл бұрын
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 ...
@lilstunna
@lilstunna Жыл бұрын
I am stuck at 1:21:26 since my build says “Thread 1: “Default app has already been configured.” Any tips/fixes?
@ida.angelma
@ida.angelma 10 ай бұрын
Such high quality tutorial! 10/10 Thanks so much for this video!
@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.
@bowser.junior
@bowser.junior 11 ай бұрын
How did you import it?@@fredylopez529
@pietertsie
@pietertsie Жыл бұрын
Great tutorial, the only thing missing is the delete account function.
@appstuff
@appstuff Жыл бұрын
That’s available in the completed source code
@YunyiWu-v3e
@YunyiWu-v3e Ай бұрын
great tutorial, thank you so much!
@goranparacki1897
@goranparacki1897 4 ай бұрын
Hello, in this line of code // guard let encodedUser = Firestore.Encoder().encode(User) else {return} // i get error Type 'Firestore' has no member 'Encoder' Did Firestore change something or new Xcode 16 ?
@zainl4166
@zainl4166 9 күн бұрын
replace Import FirebaseFirestoreSwift with Import FirebaseFirestore - it should work. FirebaseFirestoreSwift got moved into FirebaseFirestore
@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
@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 Жыл бұрын
I'm having the same issue. I hope Stefan will notice and help us solve this problem :)
@andiraynth
@andiraynth Жыл бұрын
Me too.. my profile view went blank.. and it's always print that current user is nil?
@Spacer-l3j
@Spacer-l3j 8 ай бұрын
@@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
@gitShruti
@gitShruti 3 ай бұрын
@@Spacer-l3j did you guys find a solution?
@WossyChamberBAE
@WossyChamberBAE 17 күн бұрын
Did anyone get a fix for this?
@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?
@appstuff
@appstuff Жыл бұрын
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 Жыл бұрын
@@appstuff 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.
@bowser.junior
@bowser.junior 11 ай бұрын
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"?
@あいぜん-u5e
@あいぜん-u5e 11 ай бұрын
What if you use 'import FirebaseAuth' instead of 'import Firebase'?
@danlaratta
@danlaratta 9 ай бұрын
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 5 ай бұрын
yes importing 'FirebaseAuth' worked for me with that problem.
@lucasgaming61
@lucasgaming61 5 ай бұрын
I had that error as well, but I found out that you have to import FirebaseAuth
@PureMoonshne
@PureMoonshne 27 күн бұрын
@lucasgaming61 Appreciate it!
@SheCoderrInc
@SheCoderrInc Жыл бұрын
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?
@andersonlee8588
@andersonlee8588 3 ай бұрын
Did you ever run into an issue of staying on SignUpView() even after a successful sign up?
@BitHub01
@BitHub01 10 ай бұрын
I love this. Thanks Stefan
@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.
@dimitriborgers9800
@dimitriborgers9800 Жыл бұрын
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 Жыл бұрын
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.
@mohamethseck
@mohamethseck Жыл бұрын
This is 🔥! Please do one with firestore database and storage 🙏🏽
@zeequreshi1607
@zeequreshi1607 Жыл бұрын
When I add ProfileView as shown on 1:04:49 it says it’s not in the scope, how can I fix this?
@marior5361
@marior5361 Жыл бұрын
I can’t preview the profile page with the finished code, why is that?
@saulg97
@saulg97 Жыл бұрын
Same here
@ricardokaka8896
@ricardokaka8896 Жыл бұрын
Have you found a solution for this? I can't preview it either. It works in the build but not in the preview. Thanks.
@kenyaalvarez2621
@kenyaalvarez2621 Жыл бұрын
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?
@Aymen_Raeed
@Aymen_Raeed Жыл бұрын
Wow thanks man you’re the best
@saraelkilany3651
@saraelkilany3651 6 ай бұрын
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?
@Testtesztest12123
@Testtesztest12123 Жыл бұрын
Awesome. Thanks for your effort!
@Broncos10499
@Broncos10499 Жыл бұрын
Any help for nested collections in the User collection? Thx
@BradCaldwellAuburn
@BradCaldwellAuburn Жыл бұрын
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.
@daryakuliashova6062
@daryakuliashova6062 Жыл бұрын
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!
@aliciahope9
@aliciahope9 Жыл бұрын
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
@chepparing
@chepparing Жыл бұрын
Awesome tutorial. Please breakdown your topic into sections. Good work.
@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?
@appstuff
@appstuff Жыл бұрын
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 Жыл бұрын
@@appstuff 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?
@Od253
@Od253 2 ай бұрын
Nice tutorial!
@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😊
@SheCoderrInc
@SheCoderrInc Жыл бұрын
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.
@bocetta8936
@bocetta8936 Жыл бұрын
very clean job I love it
@keremoflu
@keremoflu 10 ай бұрын
It was great, thanks!
Жыл бұрын
Do you have any tutorial about a Login using SwiftUI and php mysql instead of firebase? thanks
@appstuff
@appstuff Жыл бұрын
No, just Firebase
@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?
@appstuff
@appstuff Жыл бұрын
The code will still run with that error. It’s a firebase issue
@Monkeymanandfriends
@Monkeymanandfriends 8 ай бұрын
It is showing 2 views at once. The login and profile why?
@JavierSanchez-yp1bl
@JavierSanchez-yp1bl Жыл бұрын
Awesome, thanks!
@__cross__3478
@__cross__3478 5 ай бұрын
Good and clean !!
@КсюшаЧернышева-з6ш
@КсюшаЧернышева-з6ш Жыл бұрын
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????
@chepparing
@chepparing Жыл бұрын
This error occurred. Please repeat the course from @ 54:00
@КсюшаЧернышева-з6ш
@КсюшаЧернышева-з6ш Жыл бұрын
@@chepparing thanx
@tiberiusrubicon9261
@tiberiusrubicon9261 Жыл бұрын
Navigation links as way to change user_state is not secured and is not so good way.
@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.
@ecptavares
@ecptavares Жыл бұрын
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
@abdullohbahromjonov781
@abdullohbahromjonov781 Жыл бұрын
from his ig u can't tell he is a software engineer
@ykkingdoms3126
@ykkingdoms3126 Жыл бұрын
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.
@andreas39157
@andreas39157 Жыл бұрын
Can't find this on your web page?
@CipherLunis
@CipherLunis Жыл бұрын
Very helpful!
@adamdono2090
@adamdono2090 Жыл бұрын
created everytging but my navlinks and buttons doesnt navigate to another screen its literally unclickable
@marshalllll
@marshalllll 10 ай бұрын
thanks bro helped a ton
@SheCoderrInc
@SheCoderrInc Жыл бұрын
I fixed the issue!!
@michamichalik9719
@michamichalik9719 Жыл бұрын
Great stuff
@YuDikNg_hk
@YuDikNg_hk Жыл бұрын
why i can’t search firebase’s package?
@AndyCamTVProduction
@AndyCamTVProduction Ай бұрын
must be too out of date to work now, just crashes and can not even find some of the things 😞
@rank1macro
@rank1macro Жыл бұрын
Great to see you again brother! Hope you doing good. You still work at Meta since you mentioned 'switch jobs'? Peace
@appstuff
@appstuff Жыл бұрын
No longer with Meta! It was time to move on ➡️➡️
@rank1macro
@rank1macro Жыл бұрын
@@appstuff 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 ✌️
@mansamusa8653
@mansamusa8653 Жыл бұрын
Great 👍
@CodeHelp11
@CodeHelp11 5 ай бұрын
Hey, can anyone share me the Source Code. I can’t sign up.
@LionMajestic
@LionMajestic Жыл бұрын
Excellent
@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
@andersonlee8588
@andersonlee8588 3 ай бұрын
is anyone failing to navigate to the profile screen after signing up
@Cuvsie
@Cuvsie 9 ай бұрын
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?
@Spacer-l3j
@Spacer-l3j 8 ай бұрын
Use a form instead of the List...also use Label instead of his crap
@ASCEMA
@ASCEMA 10 ай бұрын
👍
@EquipteHarry
@EquipteHarry 4 ай бұрын
Brown Scott Walker Gary Williams Timothy
@designckinet
@designckinet Жыл бұрын
Really cool tutorial!
Swift API Calls for Beginners (Networking) - Async Await & JSON
25:35
Каха и дочка
00:28
К-Media
Рет қаралды 3,4 МЛН
Try this prank with your friends 😂 @karina-kola
00:18
Andrey Grechka
Рет қаралды 9 МЛН
Connect Firebase to Xcode: A Step-by-Step Tutorial | Firebase Bootcamp #1
21:07
SwiftUI Basics Tutorial
1:19:31
Sean Allen
Рет қаралды 404 М.
SQLite: How it works, by Richard Hipp
1:39:27
Prof. Dr. Jens Dittrich, Big Data Analytics
Рет қаралды 31 М.
Getting started with Google Sign-In on Apple platforms
18:57
Firebase
Рет қаралды 25 М.
NSURLProtocol: How I Stole an App For My Wedding
56:25
Bryce Bostwick
Рет қаралды 63 М.
Каха и дочка
00:28
К-Media
Рет қаралды 3,4 МЛН