All Questions
226 questions
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 ...
0
votes
1
answer
134
views
SwiftUI NavigationLink goes back immediately on first activation after app launch
I am experiencing an issue with programmatic navigation in my SwiftUI app. I use a NavigationLink with an isActive binding to navigate to a specific view (EditUser). The first time I toggle the ...
0
votes
0
answers
16
views
Make navigations to the next View after pushing ATT message
enter image description here
Is it possible to make it automatic to go to the next View after answering App Tracking Transparency Dialog allert?
Black View with App Tracking Transparency Dialog on it
...
0
votes
0
answers
89
views
SwiftUI NavigationTitle jumps down in detail view when using searchable list in NavigationView
I am working on a Swift project for iOS 17.0 or newer using SwiftUI in Xcode Version 15.4
I have three views:
View 1: Contains a NavigationView that navigates to View 2.
NavigationView{
...
1
vote
2
answers
117
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 ...
0
votes
1
answer
106
views
Replace deprecated NavigationView for iPhone and iPad Layout
I'm currently using NavigationView to layout my App for iPhone and iPad depending on the horizontalSizeClass. Since the functions I'm using for NavigationView and NavigationLink are deprecated I ...
0
votes
0
answers
77
views
SwiftUI - NavigationLink and .navigationDestination: Bindings get updated but views don't refresh
So I was updating my app to the new NavigationStack with .navigationDestination() and giving Bindings as parameters but now views don't refresh although the values get modified.
I feel like I am ...
1
vote
1
answer
262
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
112
views
NavigationLink not functioning in SwiftUi for WatchOS
Hope you're having a great day.
I'm trying to build a simple page that navigates from one view to another, and I can't get the NavigationLinks to work even when following existing examples/...
1
vote
1
answer
99
views
When using an iPad and you change the screen from compact to regular, how do you keep the current view from going to a default view?
// BottomNavigationBarView.swift
// TrexlerLibrary
//
// Created by Emanuel Luna on 2/3/24.
//
import SwiftUI
import UserNotifications
enum ActiveView: String, Hashable {
case home
case ...
1
vote
0
answers
122
views
Prevent NavigationLink to go back by itself to Navigation View
I have a list of restaurants that its observed all the time:
func getAllRestaurantsInParameters(lat: Double, long: Double){
self.repo.getAllRestaurants().watch(block: {restaurants in
...
0
votes
0
answers
31
views
NavigationLink not storing the previous state in SwiftUI (for mobile app)
I need to implement the below scenario:
When user is in mainPage view and types the input and clicks it, it calls the viewModel.selectItem function and that will in turn call the API from the backend ...
0
votes
0
answers
221
views
SwiftUI NavigationLink. Animation onTapGesture and delay destination loading. Possible?
I have a menu of NavigationLinks (with images) that animate onto the screen from the bottom onAppear. Navigation works as expected when tapped, the links move off to the left as the destination view ...
0
votes
1
answer
1k
views
Navigation in Swift with SwiftUI
I am a newbie in swift development with iOS. Currently I have started a project in Swift with SwiftUI that has different hierarchies of views. There are different switches between the views. I have ...
2
votes
1
answer
100
views
Can’t make a button tappable parallel to navigationTitle
The button is not tappable as I move it to the extended line of the title. If I move it to somewhere else, it works but I want to place it on the line of Title.
But whenever I do it, it does not ...