Let's create a Simple Login Screen for iPhone in Xcode (SwiftUI)

Поделиться
HTML-код
  • Опубликовано: 3 дек 2024

Комментарии • 59

  • @k.t8174
    @k.t8174 9 месяцев назад +1

    Nice video. Very concise. But I guess some ppl were expecting that you'd use firebase. So I wanted you to specify that this video doesn't include firebase

  • @xtremechallenges4753
    @xtremechallenges4753 2 года назад +2

    Please post more SwiftUI videos! I love them!

  • @tannersimpson9940
    @tannersimpson9940 Год назад +6

    I'm having an issue with the navigationlink. I get an error about it being outdated

  • @Yama_GG
    @Yama_GG Год назад +9

    Nice Video, however, for the "Navigation Link(destination: isActive:label) was depreciated in iOS 16" warning comes up and I havent been able to figure out how to fix it.

  • @FlashGamer521
    @FlashGamer521 Год назад +6

    I think this would be a lot easier to follow if you started with the functional parts before adding the design/layout. Most people watching are looking to use these elements in their own app, so they are going to end up altering the layout anyways.

  • @ziyavankruijsdijk3547
    @ziyavankruijsdijk3547 2 года назад +8

    it gave this error 'init(destination:isActive:label:)' was deprecated in iOS 16.0: use NavigationLink(value:label:) inside a NavigationStack or NavigationSplitView

    • @Indently
      @Indently  2 года назад +1

      Literally read the error to find out what you should do next

    • @abby20482
      @abby20482 2 года назад

      @@Indently Same problem with me, could you copy paste the code in here? Because it is a newer version

    • @djziyax3062
      @djziyax3062 2 года назад +1

      @@Indently I don’t no what to replace it with because it is changed in iOS 16

    • @Angelo-sc9of
      @Angelo-sc9of 2 года назад

      @@djziyax3062 DO YOU find a solution?

    • @Kub0slav
      @Kub0slav Год назад +1

      same prob 🧐, but I achieved the result as same as in the video

  • @kolopo300
    @kolopo300 Год назад +4

    Hey, I love this design and I would really like to continue making this however I've ran into a problem like many other people and whenever I type in NavigationLink(destination: Text("You are logged in @/(username)"), isActive: $showingLoginScreen) {
    EmptyView()
    }
    It comes up with this error message: 'init(destination:isActive:label:)' was deprecated in iOS 16.0: use NavigationLink(value:label:) inside a NavigationStack or NavigationSplitView
    I've tried countless times to fix the issues and even done hours and hours of research on how to fix the problem but I'm getting no where. I don't want to give up on this project, do you think you could identify what the code needs to be changed to?
    Thanks

    • @dogeii
      @dogeii Год назад

      having sameissue

    • @hamo4233
      @hamo4233 10 месяцев назад

      @kolopo300 do u already solved it brother?

    • @AFE948
      @AFE948 8 месяцев назад

      Use:
      Button("Login") {
      showingLoginScreen.toggle()
      }
      .navigationDestination(isPresented: $showingLoginScreen) {
      Text("You are logged in @\(username)")
      }

  • @bluecoded6928
    @bluecoded6928 2 года назад +3

    Hi, idk if u still reply to comments but how can i remove the back button after i login? is there a way to remove the back button?

  • @flyguywithacamera
    @flyguywithacamera 9 месяцев назад

    Great video, however the Navigation Link is now deprecated. Can you give us an update on the best way to make this work with iOS 16? Thanks!

  • @musakhan7284
    @musakhan7284 2 года назад +2

    please make a full video for buliding a beginner app
    thank u!

    • @Indently
      @Indently  2 года назад

      There are plenty on my channel. Thanks!

  • @zoya8698
    @zoya8698 2 года назад +2

    This video was very helpful, but I'm wondering, how would one insert a database as you mentioned around 8:17? Would Heroku work?

    • @davidv496
      @davidv496 2 года назад

      One method would be an API. Look into Strapi.

    • @joshuahardy8011
      @joshuahardy8011 2 года назад

      Any chance that this could be addressed?

  • @gaddp
    @gaddp 2 года назад

    I am getting my feet wet to learn more about SwiftUI, and thank you for posting great tutorials!

  • @luoarnamsk
    @luoarnamsk 2 года назад +6

    Would just like to point out that exposing the information about which field (username or password) is wrong is a bad security practice, as it allows for User Enumeration Attacks. Therefore you might not want to implement this for a real production app. Other than that, informative video!

    • @Michael_Konja
      @Michael_Konja Год назад +2

      how you code this any differently. working on a side project and hoping to get some advice?

    • @updateserver
      @updateserver Год назад

      @@Michael_Konja numerous of ways to mitigate this type of attack. Using MFA, integrating CAPTCHA, WAF OR NGFW(next -generation firewall) also using cryptic wording (i.e “username and/ or password not valid” )
      Instead of having the app output “password is incorrect”
      This ^lets the threat actor know the username is stored in the DB which would lead to them using rainbow tables or a dictionary list of common passwords until that account is compromised through brute force. Vice versa with the username btw.

  • @slimbody55
    @slimbody55 7 месяцев назад

    when i view on the ipad the circle is out of range, wht would be the scale for ipad ?

  • @ziyavankruijsdijk3547
    @ziyavankruijsdijk3547 2 года назад +1

    it does not work for iOS 16 the codes have changed please help me

  • @hashemakkad6439
    @hashemakkad6439 Год назад +1

    Hi, I've made a simple app where you write the results of your glucose blood test then the app would tell you if it's above or less the normal numbers, then suggest to you what you should do in that case.
    What I'm trying to do now is to give the user the choice to create an account with a username and a password and give them the ability to see all the results they've had in previous enters and then to ask for a chart to be drown to show the ups and downs of their results.
    I've been stuck at this point for a while now, if anyone could help, just by showing me what to read to be able to do so, thank you...

  • @Tony_Ugatz
    @Tony_Ugatz 2 года назад

    what is your theme? It's amazing.

    • @Indently
      @Indently  2 года назад

      I just did some random edits in the theme editor in the settings :)

  • @FabricioMTL
    @FabricioMTL 2 года назад

    Bro have error on Xcode but I follow your tutorial and I don’t if is because I use a MacBook 2012 Catalina with Xcode. 11.3

  • @holycaust3763
    @holycaust3763 3 года назад

    Loved the tutorial !
    Any idea how to clear the textfields after you click "back" or in my case "sign out" ?

    • @Indently
      @Indently  3 года назад +1

      Maybe you can just clear them when the user successfully logs in, so that you don't have to clear them later.

    • @xtremechallenges4753
      @xtremechallenges4753 2 года назад +1

      Yes. What about when you click the Login button, the the body of the action just make it say username = “” and password = “” so that when they click back they would be cleared.

  • @awais.fayyaz
    @awais.fayyaz 2 года назад +1

    Thanks

  • @Angelo-sc9of
    @Angelo-sc9of 2 года назад +1

    how insert a image as background

  • @nursemanakiboglu403
    @nursemanakiboglu403 2 года назад

    Firstly thnx for ur explanation.I got a question about last part. When I add (wrongPassword = 0 or equal 2 ) statementin İf condition, I get a error message as "Cannot find wrongPasssword or wrongUsername in scope". Could help me pls? I checked everything!!

  • @yuripereira8123
    @yuripereira8123 Год назад

    which version of Swift?

  • @zanehalperin2831
    @zanehalperin2831 2 года назад

    i had a bunh of error codes (Type '()' cannot conform to 'View' ) and (Closure containing a declaration cannot be used with result builder 'ViewBuilder') show up any suggestions?

    • @Indently
      @Indently  2 года назад

      Check out the source code in the description and compare it.

  • @pxnx
    @pxnx 3 года назад +1

    Feeld a bit weird when compared to Flutter or Jetpack Compose

    • @Indently
      @Indently  3 года назад

      I enjoy it a lot

  • @HelinSool
    @HelinSool Год назад +2

    Can u help me? There is a Problem with your code but I can't fix it by myself: NavigationLink(destination: Text("logged in @\(username)"), isActive: $showingLoginScreen){
    EmptyView()
    'init(destination:isActive:label:)' was deprecated in iOS 16.0: use NavigationLink(value:label:) inside a NavigationStack or NavigationSplitView
    Can u send me the right code?

    • @Indently
      @Indently  Год назад

      The problem is that that code doesn't work with FastAPI

  • @mrwhammer
    @mrwhammer 2 года назад

    the cgfloat says no exact matches in call to initializer

  • @heidiellen9347
    @heidiellen9347 2 года назад

    I’m also getting errors for the code, I tried your previous advice to compare your source code, in fact I decided to copy and paste it and I’m still getting the same errors even with your exact code. I’m trying to be able to view it also but it says “failed to build the scheme”. I have no idea what I’m doing wrong.. 😅

    • @heidiellen9347
      @heidiellen9347 2 года назад

      My first error in the code is “Color.blue .ignoresSafearea()” it says “Value of type ‘Color’ has no member ‘ignoresSafeArea’. This is just one error of 6 that I can’t seem to fix

    • @jacobcabatana6488
      @jacobcabatana6488 2 года назад

      @@heidiellen9347 capitalize the "A" in "area"

  • @anikethmahesh8348
    @anikethmahesh8348 Год назад

    How would I add a button on the screen when authentication is approved?

  • @homeoffice3524
    @homeoffice3524 2 года назад

    Will it work with swift playground to?

  • @davidv496
    @davidv496 2 года назад +1

    Nice and simple UI design to help get started. One thing I would offer is to add .autocorrectionDisabled(true) to the username since those are seldom proper words.