ios – My challenge has 2 navigation bar styes; default swiftui navbar and a customized one.Is there a method to disguise the swiftUI navigation bar at a sure level?







I’m doing a challenge the place I’m implementing the SwiftUI default navbar [navigation view and navigation link] after which I created my very own custome navbar for the remainder of the screens.

So, I’m utilizing the SwiftUI navbar for the login course of in my utility.
However after the person logs in, they’re taken to the homepage. That is the place I carried out my very own navigationBar type.

Now you see, I linked the login button with the homepage utilizing:
NavigationLink(vacation spot: HomepageView())

You see the place the issue is, it is like I am nesting 2 navigation views and so I am getting 2 navigation bars. I wish to disguise the default navigationBar that got here from the login course of.
So I attempted utilizing the [.navigationBarHidden(true)] but it surely doesn’t work in any respect.

In brief, how do I implement 2 navigation Views [one default, one custome] the place I can use one for a bit of my app after which the opposite for an additional part with out having them to collide like this.

The perfect i might discover was:

//added this to my HomepageView()

The navbar show mode adjustments to inline, however it’s nonetheless there ­čÖé

I am actually a newbie nonetheless, so are you able to please assist me.


Share this


What companies are using big data analytics

What do companies use big data for? What companies are using big data analytics. There are a multitude of reasons companies use big data, but...

How to use big data in healthcare

What is data quality and why is it important in healthcare? How to use big data in healthcare. In healthcare, data quality is important for...

How to build a big data platform

What is big data platform? How to build a big data platform. A big data platform is a powerful platform used to manage and analyze...

Recent articles

More like this