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
0 answers

Bottom Bar overlay outside navagationview

I am creating a UI from a mockup that looks like this. You can see the bottom bar is over the navigation view but not over the sidebar. I want to make the bottom bar outside the navigation view so it does not create a new instance for every…
user14239891
0
votes
0 answers

How to have a Navigation link open a different view?

I keep trying to have the navigation links in the surveys list in contentView to open detailView when selected. I keep getting errors Missing argument for parameter 'newsurvey' in call Insert 'newsurvey: <#Survey#>' Here's the home view struct…
0
votes
2 answers

Multiple back buttons created when navigates to root screen in SwiftUI

say I create 3 screens in SwiftUI which contains a NavigationLink to the next screen. like, first screen navigates to 2nd screen. 2nd screen navigates to third. and the third screen navigates to the first screen. In this case even if I use…
0
votes
0 answers

How to fit SwiftUI content to split view layout margins?

I have a sidebar in NavigationView with searchable and a grouped list that both inset properly to the largeTitle. However when I want to place additional views in the sidebar, I have trouble aligning them to match the width/insets of the searchable…
aehlke
  • 15,225
  • 5
  • 36
  • 45
0
votes
2 answers

Remove specific screen from NavigationView in SwiftUI

Currently i am using NavigationView->NavigationLink to navigate one screen to another. How can i remove specific screen from NavigationView? For Example I have four screen A, B, C and D. The navigation chain like this A->B-C->D. From Screen D how…
0
votes
1 answer

SwiftUI Complex Navigation Data Model Design

In iOS 16, SwiftUI introduced the new navigation API, requiring that navigation state should be driven by data. Therefore, one need to design the navigation data model before adopting the new navigation API. I encountered a case where I find it…
wheatset
  • 339
  • 1
  • 7
0
votes
1 answer

Multiple NavigationViews in SwiftUI - How to get rid of multiple toolbar items (i.e the back-button on the left corner)?

I am making an app where the first view the users see is a home screen with buttons that takes them to a second view. One of the second views present the user with a list of items. When the user clicks on one of these items the user comes to a…
0
votes
0 answers

UINavigationBar overflowing background

I have to implement a navigation bar where the background overflows into the content of the navigation. I would like to implement this using the UIAppearance, so that I can configure it once for all the views. I managed to do this by setting the…
Bram
  • 2,718
  • 1
  • 22
  • 43
0
votes
0 answers

SwiftUI: Navigation View does not update on layout direction change (forced by environment variable)

I have created an app that supports two languages English and another language which uses the right to left layout direction opposing the English language. I have created an in app language picker which modifies a variable inside a view model and…
Enos
  • 100
  • 1
  • 7
0
votes
2 answers

How hide navigation bar always back from any view directly using NavigationView?

I am using xcode-14.2 & minimum target version 14. I have three views ContentView, Welcome & `FundTransfer. Here is my case. ContentView - Load first view & navigationBarHidden is working. When Welcome page button click it goes to Welcome…
Enamul Haque
  • 4,789
  • 1
  • 37
  • 50
0
votes
2 answers

Ignore SafeArea inside NavigationView

I am creating simple app with swiftui. In my app, I have 2 screens "ContentView" and "Home". In my Content View, struct ContentView : View { var body: some View { NavigationView { ZStack { …
XaFav
  • 1
  • 1
0
votes
1 answer

swiftui tab bar takes time to change color

I have a custom tab bar. In each view, I load some data for the database. With 4 different views, whenever I click a view, the color will change, to easily know what view we are present on. However, for the view that loads more data than the other,…
user20810748
0
votes
1 answer

The EditButton for NavigationView is not working properly for iPad ( But correct for iPhone)

I am new in SwiftUI developing, In a SwiftUI project, I created a list of items then I followed the tips in this link to enabled edit button for this, https://developer.apple.com/documentation/swiftui/editbutton It works properly for iPhone…
neda Derakhshesh
  • 1,103
  • 2
  • 20
  • 43
0
votes
1 answer

Some NavigationLink are inaccessible

My SwiftUI TVOS app has two sets of NavigationLink. When both sets are present (not commented out), only one set is accessible to tap on. If I comment out one or the other set, the remaining NavigationLink is accessible to tap on and functions…
0
votes
1 answer

NavigationView doesn't show up correctly in ScrollView

I have encountered this problem during UI building. Previously, I've been asking here about NavigationView and why NavigationLink wasn't working. I fixed this problem with NavigationView at the top of my ScrollView. Now FrameView works just fine:…
user19727360