SwiftUi - 隐藏 "Back" 按钮和导航栏(出现几分之一秒)

SwiftUi - hide "Back" button and navigation bar (appears for a fraction of second)

我正在使用此代码隐藏导航栏和后退按钮,但是当加载视图时,我仍然可以看到后退按钮几分之一秒,然后它消失了。有什么方法可以防止它被显示吗?

var body: some View {
    NavigationView {
        NavigationLink(destination: DeferView { WeekView(journey: self.launcher.completeJourney!) }, isActive: self.$launcher.readyJourney ) { EmptyView () }
        .navigationBarHidden(true)
        .navigationBarTitle("")
    }
}

提前谢谢你,

也为 link 目的地添加相同的修饰符,

var body: some View {
    NavigationView {
        NavigationLink(destination: DeferView { WeekView(journey: self.launcher.completeJourney!) }
                                    .navigationBarHidden(true)   // here !!
                                    .navigationBarTitle("")      // here !!

              , isActive: self.$launcher.readyJourney ) { EmptyView () }
        .navigationBarHidden(true)
        .navigationBarTitle("")
    }
}