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
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.
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.
it gave this error 'init(destination:isActive:label:)' was deprecated in iOS 16.0: use NavigationLink(value:label:) inside a NavigationStack or NavigationSplitView
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
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 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.
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...
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.
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!!
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?
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?
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.. 😅
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
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.
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
Please post more SwiftUI videos! I love them!
I'm having an issue with the navigationlink. I get an error about it being outdated
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.
@indently
@@hlsat?
just ignore it i guess
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.
it gave this error 'init(destination:isActive:label:)' was deprecated in iOS 16.0: use NavigationLink(value:label:) inside a NavigationStack or NavigationSplitView
Literally read the error to find out what you should do next
@@Indently Same problem with me, could you copy paste the code in here? Because it is a newer version
@@Indently I don’t no what to replace it with because it is changed in iOS 16
@@djziyax3062 DO YOU find a solution?
same prob 🧐, but I achieved the result as same as in the video
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
having sameissue
@kolopo300 do u already solved it brother?
Use:
Button("Login") {
showingLoginScreen.toggle()
}
.navigationDestination(isPresented: $showingLoginScreen) {
Text("You are logged in @\(username)")
}
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?
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!
please make a full video for buliding a beginner app
thank u!
There are plenty on my channel. Thanks!
This video was very helpful, but I'm wondering, how would one insert a database as you mentioned around 8:17? Would Heroku work?
One method would be an API. Look into Strapi.
Any chance that this could be addressed?
I am getting my feet wet to learn more about SwiftUI, and thank you for posting great tutorials!
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!
how you code this any differently. working on a side project and hoping to get some advice?
@@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.
when i view on the ipad the circle is out of range, wht would be the scale for ipad ?
it does not work for iOS 16 the codes have changed please help me
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...
what is your theme? It's amazing.
I just did some random edits in the theme editor in the settings :)
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
Loved the tutorial !
Any idea how to clear the textfields after you click "back" or in my case "sign out" ?
Maybe you can just clear them when the user successfully logs in, so that you don't have to clear them later.
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.
Thanks
how insert a image as background
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!!
==
which version of Swift?
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?
Check out the source code in the description and compare it.
Feeld a bit weird when compared to Flutter or Jetpack Compose
I enjoy it a lot
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?
The problem is that that code doesn't work with FastAPI
the cgfloat says no exact matches in call to initializer
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.. 😅
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
@@heidiellen9347 capitalize the "A" in "area"
How would I add a button on the screen when authentication is approved?
Button(""){
}
Will it work with swift playground to?
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.