Skip to main content
Filter by
Sorted by
Tagged with
-1 votes
1 answer
72 views

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 ...
Shakhzod's user avatar
2 votes
1 answer
59 views

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: $...
RMP's user avatar
  • 5,441
1 vote
1 answer
168 views

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() ...
Darren's user avatar
  • 10.5k
0 votes
2 answers
116 views

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("...
ShadesJeff's user avatar
1 vote
2 answers
130 views

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 ...
user832's user avatar
  • 983
0 votes
0 answers
57 views

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 ...
Johannes Dorn's user avatar
0 votes
0 answers
108 views

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 ...
cabinguy's user avatar
1 vote
0 answers
106 views

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 ...
HAS's user avatar
  • 35
1 vote
2 answers
146 views

I have simple setup to reproduce this: struct ContentView: View { var body: some View { NavigationStack { VStack { Rectangle() ...
MegaManX's user avatar
  • 8,920
1 vote
1 answer
318 views

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 ...
fer0n's user avatar
  • 1,313
0 votes
0 answers
97 views

I have a simple sheet: .sheet(isPresented: $newContactSheetTrigger) { NewContactSheet() .presentationDetents([.large]) } with the following code: import SwiftUI import SwiftData import ...
Alan's user avatar
  • 41
0 votes
1 answer
140 views

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 ...
A. Kriegman's user avatar
1 vote
3 answers
94 views

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 ...
ximmyxiao's user avatar
  • 2,923
-1 votes
1 answer
153 views

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 ...
javier_alvarez's user avatar
3 votes
5 answers
2k views

I have a NavigationStack that contains a ScrollView at the bottom of the screen. struct ContentView: View { var body: some View { NavigationStack { VStack { ...
Sweeper's user avatar
  • 292k
0 votes
1 answer
57 views

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 ...
Pedro Cavaleiro's user avatar
0 votes
0 answers
73 views

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 { ...
polski rolnik's user avatar
2 votes
0 answers
141 views

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 ...
Luïs's user avatar
  • 2,933
0 votes
0 answers
35 views

I'm working on a SwiftUI app where I have a PlayerBarView that should persist across different views, specifically within a ListeningContainerView that contains a ListeningView and navigates to a ...
peyo's user avatar
  • 381
0 votes
1 answer
111 views

I'm building a SwiftUI app with Firebase Authentication and experiencing navigation issues when users log out. My app has the following structure: A root view in App.swift that conditionally shows: ...
Gunndroid's user avatar
1 vote
0 answers
109 views

Given that on iPadOS 18 the TabBar is on the top, and I need to hide/show it based on push/pop a view to/from a NavigationStack I am experiencing a weird animation glitch. This question is similar an ...
Petar's user avatar
  • 2,291
0 votes
1 answer
98 views

first of all thanks for attention and your help, so... in my app I have router from where I log and logout user @main struct JobMatchApp: App {   @StateObject private var vm = RouterViewModel()     ...
the middle's user avatar
0 votes
2 answers
360 views

In SwiftUI with attached code when i set navigationBarBackButtonHidden to true, the NavigationStack's navigation bar always pushes in when I dismiss the detail view. Since it's a zoom transition, I ...
randomor's user avatar
  • 5,745
4 votes
1 answer
316 views

With iOS 18 Apple decided to move our beloved bottom tab bar controller to the top of the screen (apparently thats more modern). I am having the following situation: I have TabView where we have root ...
Boyan Pavlov's user avatar
0 votes
1 answer
263 views

I am having the following view: import SwiftUI struct HiddenTabs: View { var body: some View { TabView { NavigationStack { NavigationLink("Tap Me") {...
Bogdan Gusiev's user avatar
0 votes
0 answers
43 views

Suppose I have a TabView which is the root of my app. I need to be able to tab between each of these, but some of them have their own NavigationStack Every one of them has a List associated with them, ...
xTwisteDx's user avatar
  • 2,520
0 votes
0 answers
119 views

I want to add custom back button to my app with out losing swipe to back gestures. Adding this .navigationBarBackButtonHidden(true) will remove swipe to back gestures I tried adding below snippet to ...
karthik rashinkar's user avatar
0 votes
3 answers
204 views

I have 2 views: import SwiftUI struct SwiftUIView: View { var body: some View { NavigationStack { ... //show SwiftUIView2 } .toolbar { ... }...
Gargo's user avatar
  • 1,378
1 vote
1 answer
123 views

Most SwiftUI modifiers modify the views beneath them in the hierarchy, but some modifiers modify views above them in the hierarchy. In my example below .navigationTitle, .toolbar, and ....
pinglock's user avatar
  • 1,351
1 vote
1 answer
86 views

I am trying to make NavigationLink rows transparent in a List while using SwiftUIIntrospect to make the NavigationStack background clear. However, I am encountering an issue where the solution does ...
Gabriel Stan's user avatar
1 vote
1 answer
81 views

I have an app that utilizes NavigationSplitView on the next view that gets pushed onto the root view's NavigationStack (I don't like using a three column layout and prefer to have an entire screen for ...
Ser Pounce's user avatar
  • 14.3k
0 votes
1 answer
310 views

After working with UIKit for several years I am still quite new to SwiftUI and especially to its navigation features. Currently I am trying to get my head around NavigationStack and ....
Andrei Herford's user avatar
1 vote
1 answer
140 views

How can I access the search bar within NavigationStack for UI Testing? Code: var body: some View { NavigationStack { List { // some elements } } .searchable(...
victorydub's user avatar
0 votes
1 answer
48 views

I observed this issue and added feedback to the Apple Feedback Assistant. However, here is the problem: When switching from portrait to landscape format and back, the back button in the navigation ...
Simon Bogutzky's user avatar
0 votes
0 answers
36 views

I have 5 screens with Tab bar here is code: struct BaseTabViewUI: View { @StateObject var routerTask = RouterTask() var body: some View { TabView { FeedUI() .tabItem { ...
Yakup Kavak's user avatar
0 votes
1 answer
433 views

I’m encountering an issue with SwiftUI navigation in iOS 18, where navigating to a DetailView causes unexpected duplication of navigation behavior when @Environment(.dismiss) is used. Code Example: ...
Najoua Mahi's user avatar
0 votes
1 answer
151 views

I am currently making a side menu for an iOS app in SwiftUI and having navigation issues. Navigating to a view from the side menu is fine, but the view will show up inside the side menu itself, rather ...
user16961399's user avatar
0 votes
1 answer
76 views

This is an interesting scenario. While I'm not going to get into designing the viewHandler, assume a parent view has NavigationStack setup where you can append to the navigationPath variable. Let's ...
kittonian's user avatar
  • 1,534
1 vote
1 answer
113 views

I'm working on iOS 17+ app in SwiftUI, which uses MapKit. MapKit's Map view adds a gradient/material view on Toolbar, which is presented on second and every next navigation. I would like to get the ...
GPH4PPY's user avatar
  • 115
1 vote
0 answers
51 views

I have a full code example below. The problem is that when I tap "Go to Detail" in the DogsView, the detail view is not visually pushed, although the path does get added to the path array ...
soleil's user avatar
  • 13.3k
1 vote
0 answers
111 views

I'm trying to replicate a UI similar to the one in the Safari app on iOS (as shown in the attached image) using SwiftUI. The navigation bar includes: A dynamic title based on the selected segmented ...
HD Mavani's user avatar
0 votes
0 answers
63 views

I am getting a lot of odd behavior with NavigationStacks and NavigationSplitView and am unclear why. There are several things going on, different depending on portrait or landscape. The sample app has ...
Russ's user avatar
  • 586
0 votes
0 answers
153 views

I am looking for a way to customize the display timing of the navigation bar’s title in SwiftUI based on the content. Specifically, I would like to control when the title appears or disappears as the ...
Kngw Kngw's user avatar
  • 123
1 vote
1 answer
28 views

I am learning iOS development using SwiftUI. I pass my user to DetailView using NavigationStack : let shape = RoundedRectangle(cornerRadius: Constants.cornerRadius) NavigationStack { ...
Ali's user avatar
  • 10k
0 votes
1 answer
208 views

I have added a toolbar to the root view of my navigation path and it disappears when I segue to the next screen in my path. I have tried placing it as a modifier to the NavigationStack but then it ...
AdrianGutierrez's user avatar
3 votes
1 answer
233 views

What is the difference between ①navigationBarTitleDisplayMode and ②toolbarTitleDisplayMode when using them with SwiftUI’s navigationTitle? It appears that .inlineLarge only works with the latter (②), ...
Kngw Kngw's user avatar
  • 123
1 vote
1 answer
42 views

I am trying to show popover when user click on custom cell/row menu in List. But every time the cell get the action and navigating to inside the details screen. Here is my code snippet. Also attached ...
Ganesh G's user avatar
  • 2,071
3 votes
1 answer
855 views

The new .navigationTransition feature introduced in SwiftUI for iOS 18+ offers an impressive animated screen transition. However, during the transition, the parent view shrinks, leaving a white margin ...
Kngw Kngw's user avatar
  • 123
0 votes
1 answer
49 views

I am getting a lot of unnecessary space between the navigation bar and the beginning of the FormContent view. I tried putting top padding of the FormContent as 0, but it didn't work. How do I remove ...
sinaar's user avatar
  • 37
-1 votes
1 answer
495 views

I have this bottom sheet in my app I'm building for a tutorial (100 days of Swift UI), and I noticed that the exact same code for showing a bottom sheet with a title has different effects on iOS18 vs ...
Sebastian Stoelen's user avatar

1
2 3 4 5
8