All Questions
Tagged with swiftui swiftui-navigationlink
1,120 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
1
answer
32
views
Automatically "Back" action after List item selection in NavigationLink
I have some screen in iOS app with NavigationStack (or NavigationView) which contains different elements. One of them is searchable List which is wrapped in NavigationLink. So this searchable list ...
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:
...
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
0
answers
87
views
SwiftUI PhotosPicker Only Responds to Long Press
SwiftUI beginner here.
I’m encountering an issue with SwiftUI’s PhotosPicker: a normal tap on the PhotosPicker rarely triggers the picker UI, while a long press eventually works. The PhotosPicker is ...
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 ...
0
votes
2
answers
102
views
Why does FocusState break when a view is pushed on the NavigationStack?
I have a view called TitleList that allows the user to edit the title of a row using a .swipeAction (it will replace the NavigationLink with a TextField).
While a title is being edited, if a user taps ...
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
55
views
SwiftUI - Image in NavigationLink clipped when adding cornerRadius
I'm working on a SwiftUI app for tvOS. I have a NavigationLink with an image and a line of text. The item works as expected, when in focus it grows. However, if I change the corner radius (the default ...
0
votes
1
answer
38
views
Navigation in SwiftUI button for tvOS disables animation
I'm working on creating a tvOS app in SwiftUI for the first time. I'm pretty new at this.
I have a row of buttons, which works properly. Whenever I change focus the item in focus increases in size.
...
0
votes
1
answer
182
views
Navigation Issue in iOS 18: Duplication of Navigation Trigger When Using @Environment(\.dismiss) in SwiftUI
I’m encountering an issue with SwiftUI navigation in iOS 18, where navigating to a DetailView causes unexpected duplication of navigation behavior when @Environment(.dismiss) is used.
Code Example:
...
1
vote
0
answers
91
views
toolbar(.hidden) not working when navigate while searching is active
Well Im just creating a personal project and then I face this bug. My navigation looks like this, if you compile the code and then try to navigate while you are not searching the .toolbar(.hidden) is ...
0
votes
0
answers
85
views
NavigationLink not redirecting to destination when NavigationSplitView is not the root view in SwiftUI
I have the following SwiftUI code, where everything works correctly when NavigationRoutes is the root view:
struct NavigationRoutes: View {
@State private var currentSelection: Destinations?
...
0
votes
0
answers
63
views
Why does NavigationView navigates back to root if item in master was selected?
The master of the NavigationView navigates back to root, if a item was selected. But only if previously a item in the root list was selected.
Tested on iPadOS.
Steps to reproduce:
Select a item in ...
-1
votes
1
answer
75
views
NavigationLink detail view transition only animates once
Problem:
Detail view transition only animates the first time
Workaround:
Make the LazyVStack a VStack. But this is not desirable.
Code:
struct TestView: View {
var body: some View {
...