371 questions
2
votes
0
answers
50
views
`.navigationBarBackButtonHidden()` not working on iOS 18.4
Current situation
I've got a minimal reproducible example of DocumentGroup app using a NavigationSplitView with a DetailView. I want to completely remove the default Navigation Bar inside these views ...
0
votes
0
answers
32
views
SwiftUI: PlayerBarView Not Persisting Across Navigation in Nested Views
I'm working on a SwiftUI app where I have a PlayerBarView that should persist across different views, specifically within a ListeningContainerView that contains a ListeningView and navigates to a ...
0
votes
1
answer
55
views
SwiftUI Navigation Issue: Unable to Reset to Welcome Screen on Logout with Nested NavigationLinks
I'm building a SwiftUI app with Firebase Authentication and experiencing navigation issues when users log out. My app has the following structure:
A root view in App.swift that conditionally shows:
...
1
vote
0
answers
62
views
Hiding tab bar on iOS 18 when pushing screens with NavigationStack animation glitch
Given that on iPadOS 18 the TabBar is on the top, and I need to hide/show it based on push/pop a view to/from a NavigationStack I am experiencing a weird animation glitch.
This question is similar an ...
0
votes
1
answer
65
views
NavigationLink in swiftui and routing
first of all thanks for attention and your help, so...
in my app I have router from where I log and logout user
@main
struct JobMatchApp: App {
@StateObject private var vm = RouterViewModel()
...
0
votes
2
answers
75
views
NavigationStack inconsistent push animation with zoom navigation transition when back button hidden
In SwiftUI with attached code when i set navigationBarBackButtonHidden to true, the NavigationStack's navigation bar always pushes in when I dismiss the detail view. Since it's a zoom transition, I ...
4
votes
1
answer
127
views
Hiding new tab view in iOS 18 when pushing screens
With iOS 18 Apple decided to move our beloved bottom tab bar controller to the top of the screen (apparently thats more modern). I am having the following situation: I have TabView where we have root ...
0
votes
1
answer
98
views
SwiftUI TabView hidden tabbar navigation stack animation order issue
I am having the following view:
import SwiftUI
struct HiddenTabs: View {
var body: some View {
TabView {
NavigationStack {
NavigationLink("Tap Me") {...
0
votes
0
answers
27
views
Auto-Collapsing navigationTitle when using TabView w/ shared toolbar?
Suppose I have a TabView which is the root of my app. I need to be able to tab between each of these, but some of them have their own NavigationStack Every one of them has a List associated with them, ...
0
votes
0
answers
40
views
How to add custom back button with swipe to back gestures in SwiftUI
I want to add custom back button to my app with out losing swipe to back gestures.
Adding this
.navigationBarBackButtonHidden(true)
will remove swipe to back gestures
I tried adding below snippet to ...
0
votes
3
answers
85
views
show fullscreen view with overlay in SwiftUI?
I have 2 views:
import SwiftUI
struct SwiftUIView: View {
var body: some View {
NavigationStack {
... //show SwiftUIView2
}
.toolbar {
...
}...
1
vote
1
answer
61
views
How do some SwiftUI modifiers modify higher level views?
Most SwiftUI modifiers modify the views beneath them in the hierarchy, but some modifiers modify views above them in the hierarchy. In my example below .navigationTitle, .toolbar, and ....
1
vote
1
answer
58
views
How to make NavigationLink rows clear?
I am trying to make NavigationLink rows transparent in a List while using SwiftUIIntrospect to make the NavigationStack background clear. However, I am encountering an issue where the solution does ...
1
vote
1
answer
47
views
is it possible to get NavigationSplitView to work on iPhone when not on root view?
I have an app that utilizes NavigationSplitView on the next view that gets pushed onto the root view's NavigationStack (I don't like using a three column layout and prefer to have an entire screen for ...
0
votes
1
answer
109
views
Is there any advantage of using NavigationStack when working with .sheet or .fullScreenCover navigation?
After working with UIKit for several years I am still quite new to SwiftUI and especially to its navigation features.
Currently I am trying to get my head around NavigationStack and ....