Questions tagged [swiftui-navigationview]

For questions about NavigationView - a view in Apple's SwiftUI framework that presents a stack of views representing a visible path in a navigation hierarchy. When using this tag also include the more generic [swiftui] tag where possible.

Links:

583 questions
0
votes
1 answer

What's best practice for programmatic movement a NavigationView in SwiftUI

I'm working on an app that needs to open on the users last used view even if the app is completly killed by the user or ios. As a result I'm holding last view used in UserDefaults and automatically moving the user through each view in the stack…
0
votes
2 answers

Swiftui , Buttons grid view

I have checked several questions here about the grid view but my question is a bit different , i want to create a grid view for buttons so each button when pressed navigate to different view, So it has look like this image: This is the grid buttons…
0
votes
1 answer

SwiftUI problem with not reloading Tab Item when using NavigationLink

I'm using Navigation View inside TabView and the problem is that if I an on Tab A and with NavigationView I open other Views, when changing from tab A to B and after a while I came back to tab A I dosen't reload tab A from beginning but it show the…
0
votes
0 answers

Navigation Title Issue

I have a navigation title for a list view. After navigating back and forth, my navigation title is missing. I am new to swiftui and unable to debug. Kindly help. var body: some View { NavigationView { VStack { …
0
votes
0 answers

SwiftUI: how to navigate to a view from a wheel picker?

How can I display a view when the user selects a type in the wheel picker in SwiftUI?
Joseph
  • 1
0
votes
0 answers

SwiftUI Resuming a navigation flow part way through

Is it possible to resume a navigation flow part way through after resuming the app? For example, if a user has registered an account, goes to validate their email but forgets and re opens the app later on, can we send them straight to the "Waiting…
Will Alexander
  • 337
  • 2
  • 16
0
votes
1 answer

SwiftUi Navigation link to Same View always gets added as a subview

I'm trying to navigate to the same view with different data from a navigation link on the current view. However, I see that the new view when navigated to gets added as a child view below the first view. Like the image shown below. Is this…
ab m
  • 422
  • 3
  • 17
0
votes
1 answer

How to avoid app crash with TabView inside NavigationView when navigate backwards ios 13 SwiftUI

I'm using a TabView inside NavigationView but my app crashes when I try to navigate backwards, it shows this error message "Thread 1: EXC_BAD_ACCESS (code=2, address=0x16ad5bff0)" at AppDelegate class. In ios 14 device it works fine but it crashes…
Sokina
  • 57
  • 2
  • 7
0
votes
1 answer

iOS app blank navigationView opening screen on some device simulators and not others

I've written an app in Swift 5 using XCode 12.2 The app and all it's functionalities work on the following simulators: iPhone 8, iPhone SE 2nd Gen, iPhone 11 Pro, iPhone 12, iPhone 12 Pro, and iPhone 12 Mini The issue occurs on all iPads, iPhone 8…
0
votes
2 answers

NavigationTitle visual glitches - transparent and not changing state from .large to .inline on scroll

The .navigationTitle on some views seem to be having some problems. On some views (and only some of the time), the .navigationTitle will not change from .large to .inline as would be expected. Instead, the title stays in place when scrolling up, and…
YourManDan
  • 277
  • 1
  • 14
0
votes
0 answers

Navigating Between "navigation views" using "navigation link"

I have many views each one of them has "NavigationView" that I use to add different buttons, when it tries to navigate between them the "NavigationLink" push the destination navigation view down as shown in the image down, So did there is a way to…
0
votes
1 answer

NavigationLink: show intermediate view with a survey and after it is closed - proceed to "destination" view

In my fitness application a user sees a list of available trainings, this list is implemented by the following structure ForEach(self.mainData.journeys) { journeyDraft in NavigationLink(destination: …
0
votes
0 answers

Navigating "quickly" in SwiftUI breaks the binding variable and prevents further navigation

The following works for a wait time of 2 sec, but set it to 0.5 and you can't get past the second screen. import SwiftUI let waitTime: TimeInterval = 0.5 class ContentViewModel: ObservableObject { @Published var shouldNavigate = false init()…
0
votes
1 answer

Why NavigationView is shown inline when using emojis in navigationTitle in SwiftUI?

I'm new in SwiftUI and I have come to a weird behavior that is driving me nuts. I'm using the following code as an example: import SwiftUI struct ContentView: View { var body: some View { NavigationView { ScrollView { …
0
votes
1 answer

SwiftUI NavigationView background color

I have a ScrollView displaying a list of items in a VStack instead of using a List. I'd like to replicate the behaviour of a .large navigation bar title where the background color uses the .systemGroupedBackground This is the behaviour of a List…
Jan
  • 7,444
  • 9
  • 50
  • 74