How to use NavigationView and NavigationLink in SwiftUI | Bootcamp #30

How to use NavigationView and NavigationLink in SwiftUI | Bootcamp #30

Swiftful Thinking

3 года назад

49,405 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@alexbggtt
@alexbggtt - 04.09.2023 20:46

So helpful! I do have a question though, and I'm sure other people have had the same... When I switch to a different struct with a navigation link (like a log in screen to a main menu), when I add a new navigation link to the menu and use it; the third page has both the original navigation title that returns to the first page, and a second underneath it that returns to the second page, and it downshifts the entire third page. Does anyone know how to fix this? Thank you so much for your channel and I hope you never stop making these videos!

Ответить
@raviprajapati6677
@raviprajapati6677 - 22.08.2023 16:02

Hi can you explain after tap on login screen how to change root view in swiftui?

Ответить
@mohammadsadman8567
@mohammadsadman8567 - 20.08.2023 09:44

Hey i am new on swiftui and xcode, i am used to using vs code and prettier. how can i achieve on save code format on xcode like prettier. i have turned on convert exist file on save . There is always empty lines in code i want it to gone away on save

Ответить
@1moRep
@1moRep - 19.08.2023 14:30

Navigation bar items is depricated, you have to use the .toolbar modifier instead
.toolbar {
ToolbarItemGroup(placement: .navigationBarLeading) {
Button {

} label: {
Image(systemName: "person.fill")
}
}

ToolbarItemGroup(placement: .navigationBarTrailing) {
Button {

} label: {
Image(systemName: "gear")
}
}
}

Ответить
@TeemoChan
@TeemoChan - 27.05.2023 21:52

I know Your are busy with firebase course but Can You Redo this tutorial as navigationView is deprecated and all other tutorials are complicated

Ответить
@yourbestsail
@yourbestsail - 18.02.2023 13:44

Hello Nick, the NavigationView is deprecated since 2022. Could you make a video about the NavigationStack? Thanks a lot for your fantastic SwiftUI courses!

Ответить
@bobbynwm
@bobbynwm - 11.02.2023 14:58

SwiftUI is really powerful and much better than UIKit from what I see - I am actually learning this to build my own prototype in xCode for my app project and got lost in UIKit at some point: with storyboards, segues, tab bars and limitation to have a sheet triggered from only one button from the tab bar in UIKit. I have gone back to the previous clip PopOverBootcamp and implemented a navigationView in the second screen and it worked like a charm ( so the idea to have navigation views within the same sheet, and not open another one on top and another one with every link to a new segue like in UIKit is amazing! - something I wasn't able to achieve or find how to do it in UIKit. Indeed your content here should have had more views! pure gold for the ones who want to learn how to do it the right way !

Ответить
@bravolatavera3647
@bravolatavera3647 - 02.01.2023 03:38

presentationMode.wrappedValue.dismiss() is now deprecated.

use

@Environment(\.dismiss) private var dismiss

Ответить
@rubensiman8749
@rubensiman8749 - 21.12.2022 10:12

One day, I will meet you and thank you for everything you have done!, each of your videos are so well made and have help me out so much !

Ответить
@swaragandhi6122
@swaragandhi6122 - 19.12.2022 22:50

Your video is super helpful but I have a question. How to I hide the buttons above my navigationlink so it does not show up on my second screen.

Ответить
@heshamabdo6024
@heshamabdo6024 - 25.11.2022 16:45

Please we need a video of the new navigation technique in IOS16 it's called Navigation Stack

Ответить
@paragjyotideka1246
@paragjyotideka1246 - 22.11.2022 22:07

Excellent Language! I am coming from a react native background and it's just so similar, but way more intuitive and simple. Swift is just simply amazing. And you explained it so beautifully.

Ответить
@wetali91
@wetali91 - 22.11.2022 06:15

Great video, but keep in mind that this is deprecated, so now apple want us to use NavigationStack instead.

Ответить
@mturk9661
@mturk9661 - 07.11.2022 16:33

Hey Nick !! Your videos are amazing but there are some tools deprecated. Isn't it possible to talk about the tools deprecated ?

Ответить
@ktok8855
@ktok8855 - 04.11.2022 10:02

cannot use .navigationBarItems right now(22.11.04) i made same UI with
.toolbar {
ToolbarItem(placement: .navigationBarLeading) {
Image(systemName: "person.fill")
}
ToolbarItem(placement: .navigationBarTrailing) {
Image(systemName: "gear")
}
}

anyone who have better ideas, please comment below

Ответить
@roshanthapa25
@roshanthapa25 - 29.10.2022 22:10

Beautifully explained. Glad I found this channel today, event if it's quite late

Ответить
@magedmohmed4403
@magedmohmed4403 - 22.09.2022 23:11

Nick , Thank you again for your helpful tutorial 🤎🤎

Ответить
@Firelordca4
@Firelordca4 - 21.09.2022 19:08

Amazing video. Any plans to redo, or re-upload this video, now that iOS 16 is out and NavigationView got a complete overhaul?

Ответить
@dochard5511
@dochard5511 - 18.07.2022 04:39

Great video. Any tips on dismissing the entire stack at once rather than going back each time?

Ответить
@videodudeler
@videodudeler - 14.06.2022 15:07

If you wanted to can you also turn the other 3 hello worlds into naviagation links aswell? can you do multiple navigation links in the list

Ответить
@yuchen3587
@yuchen3587 - 24.04.2022 12:33

How many people are using SwiftUI in the world? You deserve more subscribers

Ответить
@mhmtkrnlk
@mhmtkrnlk - 03.03.2022 02:17

Hey its been long time upen this video but can you show .isDetailLink stuff how to rotate between like viewA->viewB->viewC->viewA

Ответить
@mohanedAlsheikh
@mohanedAlsheikh - 14.02.2022 19:21

Helpful, Thanks a lot

Ответить
@bbulliard
@bbulliard - 03.02.2022 17:02

Is there a limit to number of navigation links, or entries in navigation view? After I did 10 entries,I get a compile error….extra argument in call

Ответить
@rafatwasef8518
@rafatwasef8518 - 09.01.2022 05:08

Great video as usual Thank you so much

Ответить
@CFthorin
@CFthorin - 21.12.2021 19:07

hmm seems like navigationBarItems has been deprecated

Ответить
@bbulliard
@bbulliard - 28.11.2021 17:36

Great video! bought you 3 coffee's to keep you going with all these fantastic video's....bob

Ответить
@kraterdude1989
@kraterdude1989 - 22.10.2021 11:19

Hey, I'm trying to add the ScrollView() ontop of my Image("background") but for some reason my image always overlaps the scrollView is there a solution to this?

Ответить
@seferzeynalli8188
@seferzeynalli8188 - 21.10.2021 17:08

thank you very much

Ответить
@jerripot
@jerripot - 08.10.2021 09:16

Good stuff thank you. I was thinking along the about getting from the third screen back to the first without visiting the second view on the way?

Ответить
@umolinar
@umolinar - 07.09.2021 06:15

Continuing with my questions : one of two, I am either doing something wrong or it can't be done who I have my setup. I am have custom shapes (I would like to use them as buttons/navegationlink label) I have a ForEach loop within a ZStack displaying 6 of these navegationlinks, each to a different destination. Result: they do display, but upon clicking each one, only the last one is selected, and thus can only segeway to the last View! What am I doing wrong? is there an issue generating navegationlinks within a ForEach within a ZStack? thanks Nick!

Ответить
@mygamblingstories5765
@mygamblingstories5765 - 02.09.2021 17:59

Hi,
1) Is it possible in an argument title of NavigationLink to pass anything instead of String?
2) How I can set any modifier(.font(.title2) .fontWeight(.semibold) to a title(String) argument of NavigationLink?
Thank you

Ответить
@umolinar
@umolinar - 31.08.2021 23:22

Hi, excelente video. Two questions : 1) Can I add an Image(systemName()) to the NavigationTitle()? 2) can I put the .NavigationLink() inside a .OnTapGesture?

Ответить
@JohnsonGraphicDesign
@JohnsonGraphicDesign - 15.08.2021 23:40

Great tuts Nick. A possible video idea: Common errors and how to solve them! Below are a few I've encountered again and again while learning SwiftUI. Troubleshooting them is largely difficult simply because "I don't know what I don't know" (ie - vocabulary, how to read apple documentation, common solutions to common problems, etc). Working my way through this Bootcamp so if you've already done one, please link! Thanks for your passion.

- Unable to infer complex closure return type; add explicit type to disambiguate
- Type '()' cannot conform to 'View'; only struct/enum/class types can conform to protocols
- Missing arguments for parameters 'nameOfVar' in call --- And when I try to add arguments, by typing View(arugment: $parameter), I get the error: Use of unresolved identifier '$myVarNameHere' (these two errors shows in the "Preview" code at bottom and relates to any @Binding var I've included within the view)

Ответить
@JeckyKA
@JeckyKA - 04.08.2021 15:29

great, thanks a lot!

Ответить
@haidersalih287
@haidersalih287 - 05.07.2021 07:22

Lets get Coding

Ответить
@user-ev3dl9zt8s
@user-ev3dl9zt8s - 26.05.2021 10:23

great!!! thank you

Ответить
@rasheed1andrew
@rasheed1andrew - 19.05.2021 04:13

it would be great to put the problems one might face by putting "MyOtherScreen" in another navigation view because It took me two weeks to figure it out. again thanks for your videos. I found it in a nick of time. if I'm right putting "MyOtherScreen" in another navigation view will make the screen look funny at the top when you segue from the first screen to the next screen. it creates too mush extra space that is suppose to be for a navigation title. at this point I'm changing my instagram bio to software developer.

Ответить
@sadeqnoori8707
@sadeqnoori8707 - 13.05.2021 08:18

Sure, I am excited.....

Ответить
@Pro-jz8wg
@Pro-jz8wg - 27.04.2021 19:04

Thank you for your work!
its one of the most understandable video that I watched about navigation links with swiftui.
But now im stuck when im trying to link login and password button with firebase.
Do you have any content about it on your channel ?
//sorry for my English)

Ответить
@hugob5093
@hugob5093 - 24.04.2021 14:09

Is it possible to resize the navigation bar ? To use it as a header of the view ?
Thank you

Ответить
@randlyce
@randlyce - 23.04.2021 21:36

Hey i got a question, for that third screen. I tried using navigation link to go to a new link but for some reason my "back" button keeps getting added instead of it being replaced so say my first view is inboxes i click the navigation link and then it would move to the messages views there would be a back button that says inboxes (still normal) but then from that second page when i click a navigation link to a third page then the back button that says inboxes is still there PLUS underneath it there's a back button for me to go to messages as well. could you help me please?

Ответить
@andrejkling3886
@andrejkling3886 - 13.04.2021 01:32

Excellent tutorial.... amazing. Thank you so much. Real knowledge. Keep going....

Ответить
@grenvil8414
@grenvil8414 - 12.04.2021 14:15

is possible to make styling on "ALL INBOX", example change color ?

Ответить
@iAmBeyondGreat
@iAmBeyondGreat - 16.03.2021 10:59

great video

Ответить
@markme7092
@markme7092 - 19.02.2021 15:38

make some video on advanced topic like firebase upload image in list and some others SwiftUI advance.

Ответить