Skip to main content
Stack Overflow
  1. About
  2. For Teams
Filter by
Sorted by
Tagged with
0 votes
2 answers
80 views

How to Eliminate Form Padding in NavigationStack

I have a form being loaded inside a navigation stack and I'm showing an image and title in the first form section with the code below: Form { Section { VStack { Image("...
0 votes
2 answers
111 views

NavigationStack causes multiple instances of ViewModel created due to View re-render

I am seeing multiple instances of my LoginViewModel in memory graph as NavigationStack re-renders / regenerates the view when path which is NavigationPath changes. Below is the simplified / sample ...
0 votes
0 answers
46 views

How can I use navigationDestination for cross linking in a NavigationSplitView

I am writing a Universal App for macOS, iOS 26 and want to do a two column layout with NavigationSplitView. In the sidebar I have two NavigationLinks with a value of NavigationOption, which are used ...
0 votes
0 answers
101 views

Is there any way to use a MapBox map in a SwiftUI NavigationStack without increasing memory with each new view?

I am trying to build an iOS app where user profiles have a map component to them. The recursive navigation in my NavigationStack is causing memory problems since every map I add to the stack adds ...
0 votes
0 answers
68 views

How can I fix the broken layout with a ScrollView inside a TabView that is inside a NavigationStack in SwiftUI?

I'd like to achieve a layout similar to the one shown in the Apple Fitness app. When I insert a ScrollView into a TabView, everything works fine, but if I try to add a NavigationStack to wrap the ...
1 vote
2 answers
112 views

Large navigation title scrolls with ScrollView, even if it should not

I have simple setup to reproduce this: struct ContentView: View { var body: some View { NavigationStack { VStack { Rectangle() ...
1 vote
1 answer
128 views

ToolbarItem flickers when switching between tabs in iOS 26

How can I avoid the flickering ToolbarItem when switching between tabs, while still keeping a dedicated NavigationStack for each Tab? I have unsuccessfully tried: Nesting the TabView inside another ...
0 votes
0 answers
92 views

NavigationStack causes microhang when loading sheet

I have a simple sheet: .sheet(isPresented: $newContactSheetTrigger) { NewContactSheet() .presentationDetents([.large]) } with the following code: import SwiftUI import SwiftData import ...
0 votes
1 answer
94 views

SwiftUI NavigationStack swipe anywhere on screen to go back

So by default on ios you can swipe from the edge of the screen to go back, and this question shows how to keep that while disabling the back button: Hide navigation bar without losing swipe back ...
1 vote
3 answers
83 views

Multiple NavigationLinks in a List Trigger Simultaneously – How to Fix?

In SwiftUI, when I place multiple NavigationLink views directly inside a HStack, then put this HStack inside a List, clicking one link triggers ​all NavigationLink views, causing unexpected navigation ...
-1 votes
1 answer
143 views

SwiftUI sheet unexpectedly dismisses and navigates back after editing bound data in nested NavigationStack

I'm working on a SwiftUI app to manage recipes. I present a list of recipes in RecipesListView, and when the user taps on one, I navigate to a RecipeDetailView. Inside that detail view, I allow the ...
3 votes
5 answers
1k views

ScrollViews at the bottom of NavigationStack cause the navigation title to be invisible in iOS 26

I have a NavigationStack that contains a ScrollView at the bottom of the screen. struct ContentView: View { var body: some View { NavigationStack { VStack { ...
0 votes
1 answer
52 views

SwiftUI Tab in navigation stack title

I'm targeting iOS18 and above, I'm trying to achieve this effect The app displayed is Revolut, I want to create a similar effect but I can't seem to find a starting point I also need it to be in sync ...
0 votes
0 answers
71 views

Is there a possibility to change navigation bar title by changing view in NavigationStack?

I'm trying to change navigation bar title by tapping one of tabs in tabview. Is there a chance to do it? Here's the code I'm using: struct ContentView: View { var body: some View { ...
2 votes
0 answers
136 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 ...

15 30 50 per page
1
2 3 4 5
...
26

AltStyle によって変換されたページ (->オリジナル) /