When I use navigationTitle in SwiftUI, the top padding becomes too large. However, in Apple’s own apps the top area is noticeably smaller and more compact. How can I achieve the same native look with ...
I want to use NavigationStack with a custom navigation path array supporting multiple destination types. For example:enum A: Hashable { ... }enum B: Hashable { ... }NavigationStack(path: $...
I have this view with a GroupBox at the bottom. I apply the concentric clipShape and it looks great:struct ContentView: View { var body: some View { VStack { Spacer() ...
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("...
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 ...
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 ...
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 ...
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 ...
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 ...
I have a simple sheet:.sheet(isPresented: $newContactSheetTrigger) { NewContactSheet() .presentationDetents([.large])}with the following code:import SwiftUIimport SwiftDataimport ...
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 ...
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 ...
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 ...
I have a NavigationStack that contains a ScrollView at the bottom of the screen.struct ContentView: View { var body: some View { NavigationStack { VStack { ...