Комментарии:
Thank you for the great video. Maybe it will help someone. When writing a function in the view extension for PreferenceKey, if you use "text" as a function parameter name (function updateNavigationTitle(_ text: String)), it will not work.
ОтветитьNick, I have a big problem which needs your help. After I create preference keys and the function such as "setNavTitle" in "extension View", if I don't watch your video, the first place I will go and edit is the "CustomNavBarView.swift" instead of "CustomNavBarContainerView.swift" since the "CustomNavBarView.swift" directly itself has the definition of navTitle with "Text(titleString)" in "titleSection". So, I would add a ".onPreferenceChange(PreferenceKeyNavTitle.self, perform" after the VSTACK which includes the "Text(titleString)". But after I did this, it does not work, why?
Ответитьwhy do you use private?
ОтветитьNice, your video is very help for me in developing ,
I'm facing a problem to navigation related,
actually i want to navigate from inside the function (after getting api's response)
so,
could you send me video related this issue
please
Super cool idea 👍. Thank you so much 😊
ОтветитьYou are the best!
Ответитьnice! what about transition animations for nav bar? :D
ОтветитьHello Nick firstly you are the king :), this is awesome tutorial this topic. But I have a question, if I want hide the CustomNavBar on specific scene, how can I do this?
ОтветитьWonderfully explained! 👏
Ответитьthis makes total sense, of course I will need to come back to it when I actually build something but, awesome!
ОтветитьThank you very much dude!
Ответитьif you apply background color to CustomNavBar through PreferenceKey it is not applying clear color to background instead it is display default white color why but if you aplly any other color then it is working, can you check with that. Your videos are great!
ОтветитьHi nick, great work!I wonder if there is a way to control the back gesture on and off in SwifUI. Because sometimes there are actions in the Destination View that don't want to trigger the back gesture, you can use the back gesture after the action is done.
ОтветитьHi Nick, how can i intercept for custom back button action?anyone can help me on this?
Ответить😍
ОтветитьWoah Nick, thanks for this wonderful video and this one is already one of my favourite SwiftUI videos! One question: Is there any way wherein we stack up the navigation screens and then with one single close or back,we come back to the base navigation screen? Thanks again!
ОтветитьGood tutorial, thanks, however I have a question. If I want to round the bottom corners of the CustomNavBarView, how would I do this? When I try it also clips the top around safe area.
ОтветитьThis is incredibly cool! thanks for making this video. I learned a lot!
ОтветитьCan't believe how much work is required for something so seemingly simple.
Ответитьyou are amazing, you saved my life.
ОтветитьWould be the same , using navigation stack ? Great content, keep it up.
ОтветитьAmazing...
ОтветитьYou are a life saver! Thank you for this!
ОтветитьI had to watch this twice, the first time to code along and the second time to understand what just happened :D. I love these videos and hope you continue to make more. We all appreciate it, and to that end, I am becoming a buymeacoffee supporter.
ОтветитьHow to hide this custom navigation bar??? When no need to show.....
Ответить`Hello Nick
ANy Tutorial on map in SwiftUI for an end result like Uber Apps or food delivery apps, If NO, can u suggest any resource ?
Hi, Nick! As always nice video! I have a question about interactivePopGestureRecognizer. I have XCode ver. 13.4.1 and extension UINavigationController doesnt work. What could be the problem?
Ответитьvery cool!
ОтветитьJust looked for an hour to find how to disable back button and your the only one who can tell me in 1 line of code thank you!
Ответитьthx very nice code. great job, this video it's my way in ios developer
ОтветитьHey :) Thanks for that amazing video! :) One question: how can we pass a custom view dynamically to the CustomNavBarView? I would call from everywhere ".customNavBarTrailingButton(Button("test") { print("test") }) like .customNavBarItem(<...>), so I can set a trailing navbarItem button dynamically. But here we handle strings etc. with PreferenceKeys. This is not possible with Views :/ I would highly appreciate an answer :)
ОтветитьThank you for all your efforts!!! You’re amazing
ОтветитьHi, Thanks for your Videos. I am wondering how to create CustomNavLink with isActive Binding?
ОтветитьYou are the KING here! I was looking for this solution really long time. You are much better than stack overflow and all available courses when it comes to SwiftUI. Thank you! I appreciate that.
ОтветитьYou deserve a lot more follower. Awesome content. Thank you
ОтветитьHi! I had a problem with "ignoresSafeArea" - the area above was colored without this modifier. I had to use the modifier .padding(.top, 1) to solve this problem
ОтветитьHow do you see the new NavigationStack on iOS16 fitting into this?
ОтветитьWhere is source code?
ОтветитьThis was exactly what I needed but I have one strange issue. I have implemented a tabview on my next internal page and it shows a blank section above my new custom nav. But if I click a customNavLink in one of my tabs that extra space goes away and stays away unless I go back to the main page and click into the tabview again. Anyone have a workaround for that?
ОтветитьIs it possible to add the "isActive" feature to custom nav links in this method?
Ответитьwoah, thats some real techniques... This one and the TabView one are very hard, specially those parts with PreferenceKeys. But i am not breaking, I am putting some real work to learn Swift! Thank You for your videos. I haven't found better tutorials than yours. Thank You so much again!
ОтветитьHey Nick, thanks for the video.
I want to further extend the custom NavLink to support tag and selection. So that I can call NavLink(destination:label:) or NavLink(tag:selection:destination:label) as needed. I'm using the tag:selection for conditions before tap to check if user has premium access. If true continue, if not display paywall sheet.
Any tips ?
Hey Nick is there a way to use, UINavigationController in SwiftUI because what i saw on NavigationView its Not possible to go like Page-1>Page-2>Page3>Page-1. Thats to only thing buggin me about SwiftUI.
ОтветитьGreat video. This has been extremely helpful. One question though; How would I go about implementing the "isActive" option to the custom nav link?
ОтветитьIt seems from SO that we can't have TabViews inside NavViews, but only vice versa. That'll create further complications.
ОтветитьThe CustomTabBar & CustomNavBar combination looks good, but I am struggling to get any of the tabs to show a new View. I tried CustomNavLink, NavigationLink and .onTapGesture. These are all non-responsive. Call the View() directly merely slots it at the bottom of the AppNavBarView. Any pointers Nick?
ОтветитьThis is amazing, how did you learn to code? I am still having trouble… I can follow along and make minor changes, but after a year I can not write code on my own yet… aaahhh!
ОтветитьAbsolutely awesome - I am now going to try to combine the CustomTabBar & CustomNavBar with some functionality already built into the CustomTabBar. I expect issues.
ОтветитьI've been searching for a way to change the default font for the nav bar title. More work than expected for such a simple change but this is the perfect solution. THANKS!
Ответить