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

แชร์
ฝัง
  • เผยแพร่เมื่อ 26 เม.ย. 2023
  • 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
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 109

  • @stonebird19
    @stonebird19 ปีที่แล้ว +18

    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.

  • @richutrapbands
    @richutrapbands ปีที่แล้ว +3

    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

  • @ilyas8523
    @ilyas8523 ปีที่แล้ว +3

    I usually find most TH-camrs' 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 10 หลายเดือนก่อน +1

    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!

  • @futuleta
    @futuleta 6 หลายเดือนก่อน

    Stephan you are the best swiftUI tutor on youtube thanks! Clear Coding & Every Phase Explained with Detail

  • @stonebird19
    @stonebird19 ปีที่แล้ว +6

    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  ปีที่แล้ว +2

      Appreciate that Deano! Wait until you see what’s next!

  • @cfa532
    @cfa532 หลายเดือนก่อน +1

    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.

  • @zaidmaraqa5360
    @zaidmaraqa5360 10 หลายเดือนก่อน

    Hi stefan, thank you so much. this has been the easiest tutorial to follow! thank you!

  • @ida.angelma
    @ida.angelma 3 หลายเดือนก่อน

    Such high quality tutorial! 10/10
    Thanks so much for this video!

  • @nicolascarrillo1080
    @nicolascarrillo1080 6 หลายเดือนก่อน +4

    why do I keep getting preview crashed when we make the AuthViewModel to try and test to see if it is printing our statements?

  • @Testtesztest12123
    @Testtesztest12123 ปีที่แล้ว

    Awesome. Thanks for your effort!

  • @BitHub01
    @BitHub01 3 หลายเดือนก่อน

    I love this. Thanks Stefan

  • @Aymen_Raeed
    @Aymen_Raeed 9 หลายเดือนก่อน

    Wow thanks man you’re the best

  • @bocetta8936
    @bocetta8936 ปีที่แล้ว

    very clean job I love it

  • @keremoflu
    @keremoflu 3 หลายเดือนก่อน

    It was great, thanks!

  • @FRkiddo
    @FRkiddo 11 หลายเดือนก่อน

    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

  • @JavierSanchez-yp1bl
    @JavierSanchez-yp1bl 5 หลายเดือนก่อน

    Awesome, thanks!

  • @jonathanboisvert102
    @jonathanboisvert102 11 หลายเดือนก่อน

    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 ?

  • @CipherLunis
    @CipherLunis 8 หลายเดือนก่อน

    Very helpful!

  • @omggodbs
    @omggodbs 11 หลายเดือนก่อน +2

    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?

  • @ahmed-aw
    @ahmed-aw 11 หลายเดือนก่อน

    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.

  • @lucrieffel5018
    @lucrieffel5018 หลายเดือนก่อน

    Thanks!

  • @Broncos10499
    @Broncos10499 11 หลายเดือนก่อน

    Any help for nested collections in the User collection? Thx

  • @marshalllll
    @marshalllll 3 หลายเดือนก่อน

    thanks bro helped a ton

  • @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.

  • @kenyaalvarez2621
    @kenyaalvarez2621 9 หลายเดือนก่อน

    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?

  • @michamichalik9719
    @michamichalik9719 ปีที่แล้ว

    Great stuff

  • @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😊

  • @lilstunna
    @lilstunna 6 หลายเดือนก่อน

    I am stuck at 1:21:26 since my build says “Thread 1: “Default app has already been configured.” Any tips/fixes?

  • @SheCoderrInc
    @SheCoderrInc 7 หลายเดือนก่อน

    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.

  • @AvengeTheBlade
    @AvengeTheBlade 8 หลายเดือนก่อน +1

    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 5 หลายเดือนก่อน

      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.

  • @ZiedMcHarek
    @ZiedMcHarek 2 หลายเดือนก่อน

    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.

  • @Toluol80
    @Toluol80 ปีที่แล้ว +10

    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 8 หลายเดือนก่อน

      I agree. I’m watching on my iPhone and I keep having to zoom in. Bigger font, please. 😊

  • @SheCoderrInc
    @SheCoderrInc 7 หลายเดือนก่อน +1

    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?

  • @ecptavares
    @ecptavares 9 หลายเดือนก่อน

    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

  • @dhedges1340
    @dhedges1340 9 หลายเดือนก่อน +1

    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.

  • @sageoflearning
    @sageoflearning 10 หลายเดือนก่อน

    Excellent

  • @zeequreshi1607
    @zeequreshi1607 8 หลายเดือนก่อน

    When I add ProfileView as shown on 1:04:49 it says it’s not in the scope, how can I fix this?

  • @dimitriborgers9800
    @dimitriborgers9800 9 หลายเดือนก่อน

    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 7 หลายเดือนก่อน

      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.

  • @andreas39157
    @andreas39157 8 หลายเดือนก่อน

    Can't find this on your web page?

  • @SheCoderrInc
    @SheCoderrInc 7 หลายเดือนก่อน

    I fixed the issue!!

  • @chepparmaps
    @chepparmaps 10 หลายเดือนก่อน +1

    Awesome tutorial. Please breakdown your topic into sections. Good work.

  • @designckinet
    @designckinet 11 หลายเดือนก่อน

    Really cool tutorial!

  • @Monkeymanandfriends
    @Monkeymanandfriends หลายเดือนก่อน +1

    It is showing 2 views at once. The login and profile why?

  • @mansamusa8653
    @mansamusa8653 8 หลายเดือนก่อน

    Great 👍

  • @mohamethseck
    @mohamethseck ปีที่แล้ว +2

    This is 🔥! Please do one with firestore database and storage 🙏🏽

  • @BradCaldwellAuburn
    @BradCaldwellAuburn 7 หลายเดือนก่อน

    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.

  • @tiberiusrubicon9261
    @tiberiusrubicon9261 6 หลายเดือนก่อน

    Navigation links as way to change user_state is not secured and is not so good way.

  • @onuraltntas3940
    @onuraltntas3940 11 หลายเดือนก่อน

    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

  • @pasqualegermano3570
    @pasqualegermano3570 9 หลายเดือนก่อน +2

    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 9 หลายเดือนก่อน

      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 ...

  • @adamdono2090
    @adamdono2090 ปีที่แล้ว

    created everytging but my navlinks and buttons doesnt navigate to another screen its literally unclickable

  • @daryakuliashova6062
    @daryakuliashova6062 10 หลายเดือนก่อน +1

    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 6 หลายเดือนก่อน

      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

  • @pietertsie
    @pietertsie ปีที่แล้ว +1

    Great tutorial, the only thing missing is the delete account function.

    • @appstuff5778
      @appstuff5778  ปีที่แล้ว

      That’s available in the completed source code

  • @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  ปีที่แล้ว +1

      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?

  •  8 หลายเดือนก่อน

    Do you have any tutorial about a Login using SwiftUI and php mysql instead of firebase? thanks

    • @appstuff5778
      @appstuff5778  8 หลายเดือนก่อน

      No, just Firebase

  • @YuDikNg_hk
    @YuDikNg_hk 6 หลายเดือนก่อน

    why i can’t search firebase’s package?

  • @ykkingdoms3126
    @ykkingdoms3126 6 หลายเดือนก่อน

    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.

  • @bennymartensson
    @bennymartensson ปีที่แล้ว +2

    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  ปีที่แล้ว +1

      The code will still run with that error. It’s a firebase issue

  • @tomgedas
    @tomgedas 7 หลายเดือนก่อน +2

    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  7 หลายเดือนก่อน

      Completely agree with all points, but this is definitely for beginners, and it’s also free lol

    • @tomgedas
      @tomgedas 7 หลายเดือนก่อน

      ye I thought so that maybe simplified so that it would be easier to pickup ;D@@appstuff5778

    • @iLoveAppl3947
      @iLoveAppl3947 หลายเดือนก่อน

      good points. Spent a day to learn this crap...

    • @iLoveAppl3947
      @iLoveAppl3947 หลายเดือนก่อน

      @@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 !

  • @futuleta
    @futuleta 6 หลายเดือนก่อน

    Teşekkürler.

  • @abdullohbahromjonov781
    @abdullohbahromjonov781 9 หลายเดือนก่อน +3

    from his ig u can't tell he is a software engineer

  • @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.

  • @brambi001
    @brambi001 4 หลายเดือนก่อน +1

    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 4 หลายเดือนก่อน +1

      What if you use 'import FirebaseAuth' instead of 'import Firebase'?

    • @danlaratta
      @danlaratta 3 หลายเดือนก่อน

      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.

  • @fredylopez529
    @fredylopez529 ปีที่แล้ว +1

    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 ปีที่แล้ว +1

      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 4 หลายเดือนก่อน

      How did you import it?@@fredylopez529

  • @marior5361
    @marior5361 ปีที่แล้ว +3

    I can’t preview the profile page with the finished code, why is that?

    • @saulg97
      @saulg97 11 หลายเดือนก่อน +1

      Same here

    • @ricardokaka8896
      @ricardokaka8896 6 หลายเดือนก่อน

      Have you found a solution for this? I can't preview it either. It works in the build but not in the preview. Thanks.

  • @harishkathir4028
    @harishkathir4028 11 หลายเดือนก่อน +2

    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 10 หลายเดือนก่อน

      I'm having the same issue. I hope Stefan will notice and help us solve this problem :)

    • @andiraynth
      @andiraynth 9 หลายเดือนก่อน

      Me too.. my profile view went blank.. and it's always print that current user is nil?

    • @iLoveAppl3947
      @iLoveAppl3947 หลายเดือนก่อน

      @@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

  • @user-go7xq8tn3j
    @user-go7xq8tn3j ปีที่แล้ว +2

    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 10 หลายเดือนก่อน +1

      This error occurred. Please repeat the course from @ 54:00

    • @user-go7xq8tn3j
      @user-go7xq8tn3j 10 หลายเดือนก่อน

      @@chepparmaps thanx

  • @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  ปีที่แล้ว +1

      No longer with Meta! It was time to move on ➡️➡️

    • @rank1macro
      @rank1macro ปีที่แล้ว +1

      @@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 ✌️

  • @dslkgjsdlkfjd
    @dslkgjsdlkfjd ปีที่แล้ว

    Craziest thing in the video was the MJ take

    • @richutrapbands
      @richutrapbands ปีที่แล้ว +1

      Had the same thought lmaoo, I followed along with everything except for that. LeBron the goat

  • @schahinali
    @schahinali 3 หลายเดือนก่อน

    👍

  • @Cuvsie
    @Cuvsie 2 หลายเดือนก่อน

    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 หลายเดือนก่อน

      Use a form instead of the List...also use Label instead of his crap