All Questions
260
questions
0
votes
0
answers
132
views
Xcode 16 Slow After iOS 18 Update, NavigationLink Not Working [closed]
After updating Xcode to version 16 for iOS 18, I noticed severe performance issues, especially with SwiftUI previews. In addition, there seems to be an increase in bugs in my app, with one major issue ...
0
votes
1
answer
55
views
SwiftUI: How to Navigate from Screen C Back to Screen A (Skipping Screen B) with Back Swipe Gesture?
I'm building a SwiftUI app where I have three screens (A, B, and C) navigated sequentially. The flow looks like this:
Screen A -> Screen B -> Screen C
I want to achieve the following behavior:
...
1
vote
1
answer
39
views
NavigationStack(path: ) - Is path meant to update the Binding<Value> passed in?
I'm a little confused by the syntax of NavigationStack(path: Binding), as mentioned above, it looks like NavigationStack should automatically handle the updating of path when a NavigationLink is ...
1
vote
2
answers
88
views
SwiftUI Handling EnvironmentObject Resets with navigationLink : Avoiding Navigation View Rebuilds
I have the code below where I use a NavigationLink to add multiple child views on button click. However, as soon as I increase the EnvironmentObject value, all views reset, and only ChildView 1 ...
1
vote
0
answers
310
views
Abnormal number of gesture recognizer dependencies: 100. System performance may be affected
In my IOS application I have a problem with menu when I start changing tabs (for example 20 times) I am getting error Abnormal number of gesture recognizer dependencies: 100. System performance may be ...
1
vote
1
answer
57
views
Why NavigationLink is not working sometimes, even when we alter the isActive variable?
Have you ever experienced the NavigationLink not working sometimes, but when you scroll the list to the bottom or do something else, the navigation is triggered?
NavigationView {
List {
...
0
votes
0
answers
68
views
Moving between views in swift
I have a button in a separate component that I display in a menu. One of the buttons in the menu leads to the homepage where the menu is also displayed. When I start clicking the button, the same ...
0
votes
1
answer
117
views
NavigationStack for iOS15.0+
I am trying to create a kind of Coordinator that stacks the views while navigating and make it compatible from iOS 15.0.
Here is my code that works for the first push to the next view but after going ...
0
votes
0
answers
52
views
Using NavigationLink(destination:, label:) and .navigationDestination in the same app breaks Navigation Stack
In an app I'm working on, NavigationStack is created at the App level with Screen 1 as the root.
Screen 1 has a NavigationLink with destination and label parameters. On tapping the NavigationLink, the ...
1
vote
2
answers
326
views
Are there any way to work using NavigationStack with NavigationLink to support applications below iOS 16?
In some points of the code, I need to use this:
NavigationLink(
destination: LoginViewScreen(),
isActive: $navToLogin
) { EmptyView() }
... because my navigation is not using ...
0
votes
0
answers
59
views
Is there a way to change images while using a image inside a NavigationLink in SwiftUI?
I'm relatively new to Swift development and I'm encountering an issue with SwiftUI that I haven't been able to solve despite days of research.
I am trying to create a view where an image acts as a ...
2
votes
1
answer
305
views
SwiftUI Navigation Link Selection's Highlight Not Working
In iOS, when you tap a row in a list to navigation to a page, the row gets highlighted to indicate which row is selected. This is not working for me when I have a NavigationStack(path:root:) that uses ...
1
vote
1
answer
201
views
Dismissing multiple views within navigation stack
I have stacked multiple view via NavigationLink within a list. My app code is complex, so I have tried to simplify it as much as I could.
Let's say I have a button "Click Me" in one of the ...
1
vote
2
answers
338
views
SwiftUI navigation link infinite loop causes app to freeze
I have the following SwiftUI set up
In my main, I have something like this
// singleton
@StateObject var authStatusManager = Factory.shared.authStatusManager
var body: some Scene {
WindowGroup {
...
1
vote
1
answer
245
views
NavigationStack does not render if child view contains a conditional
I am trying to use SwiftUI's new NavigationStack/NavigationLink pattern but am running into an issue if the view I am navigating to has a conditional render (just a simple if statement) in it, it does ...