Questions tagged [ios-navigationview]
66 questions
0
votes
1 answer
conflicts with navigation view on SwiftUI
i have some trouble with my app when switching between views and after many attempt the screen become white then the app become unusable, how can i resolve this problem thanks in advance.
my app structure : all views are embedded in an…

Pharos
- 3
- 1
0
votes
0 answers
Transparent NavigationView SwiftUI
I am trying to make a transparent NavigationViewso that there is no moving picture in the background.
if I add opacity to NavigationView, I see the desired image
.background(Color.clear) dont work
ZStack {
Color("FF0000").background(
…

Станислав Гичак
- 3
- 2
0
votes
1 answer
How can I push a detailpage and remove all previous navigationlinks in swiftUI?
I have an app where there are multiple screens with textfields to create some new object. When the user selects "Create" on the last screen, an API call is performed which creates the new object.
From there I want to push the detail page of the…

vrwim
- 13,020
- 13
- 63
- 118
0
votes
1 answer
Padding between Navigation Links in a Form, in Swift UI
I want to setup a form in SwiftUI and I want to make a spacing between two Navigation Links in a Form. Like this
I have no Idea how to do this (I have tried it with .padding, two different forms use.)
Thanks Boothosh
user14027307
0
votes
2 answers
Is there still no simple way to customize the Back-button in the NavigationBar in SwiftUI?
You can now use the .toolbar-modifier to set the NavigationBar principal content as you please:
.toolbar {
ToolbarItem(placement: .principal) {
Text("Custom Title")
.font(.title)
}
}
Is there an equally simple way to…

Melodius
- 2,505
- 3
- 22
- 37
0
votes
0 answers
SwiftUI - Pages with embedded NavigationViews
I'm attempting to build a paging app, where each page has its own NavigationView. It sort of works, but I get a completely redundant "Back" button in the navigation bar. My code so far is -
struct AllListsView: View {
…

SomaMan
- 4,127
- 1
- 34
- 45
0
votes
1 answer
How to give each tab within swift UI modal a title
I have built a popup view with two tabs, each containing a form. I want to give each form a title and all the online documentation points to wrapping each form within a NavigationView and using .navigationBarTitle("Form Title"). However, when I…

PaulBarr
- 919
- 6
- 19
- 33
0
votes
1 answer
Creating Array of Navigation Links for a List View for More than 10 Items in SwiftUI
Is there a way to create an array of items to populate a list view that all have navigation links? I am trying to make the below code work so that each item that populates the list view can then link to a another view that has descriptions of the…

Advocate
- 1
0
votes
1 answer
PresentationMode.dismiss weird behaviour when using multiple NavigationLinks inside ForEach
My app has 4 views (let's call them View_A[root] -> View_B -> View_C -> View_D). The navigation between them was made using NavigationView/NavigationLink.
When I call self.presentationMode.wrappedValue.dismiss() from the last view(View_D) I expect…

eugene_prg
- 948
- 2
- 12
- 25
0
votes
1 answer
Is there a way to dismiss a SwiftUI view from within a SpriteView scene?
My scene is presented like this
struct GameView: View {
@Environment(\.presentationMode) var presentationMode: Binding
func scene(size:CGSize) -> SKScene {
let scene = GameScene()
scene.size = size
…

edsgunn
- 21
- 4
0
votes
0 answers
NavigationView containing VStack embedded with HStack and List causes error when swiping backwards
I currently have a navigationView embedded with a navigationLink that leads to a VStack that contains an HStack and a List. For some reason, when I drag back to the previous navigation in the stack and leave it halfway, the app glitches and needs to…

msoni
- 25
- 1
- 5
0
votes
1 answer
NavigationBarTitle automatic display mode doesn't work
I am unsure how to fix this. I have implemented a ScrollView and a NavigationView with ZStacks. However, the automatic display mode doesn't work and the ScrollView sits behind it, with the Title…

Gigabite
- 357
- 1
- 3
- 5
0
votes
2 answers
Bug display with SwiftUI
I have a SwiftUI app where sometimes a bug in the display appears.
I have a NavagigationView that sould display like this :
But sometimes in devices it appears like this(bug display at the top of the page):
I don't understand where this comes…

Sofiane Lyno
- 165
- 1
- 10
0
votes
1 answer
Programatical navigation on NavigationView deeper than two views
Is there a way I can do programatical navigation with more than two views using NavigationView?
Like this: View 1 -> View 2 -> View 3
This is the sample code for what I'm trying to do:
class Coordinator: ObservableObject {
@Published var…

Daniel Amarante
- 749
- 5
- 15
0
votes
1 answer
Change between views on SwiftUI within NavigationView
today I'm trying to navigate between 2 different views but I want to use the same view cleaning the info from the previous view. I created a MotherView to invoke 2 different view. Here's my code
import SwiftUI
struct MotherView: View {
…

Antonio Labra
- 1,694
- 2
- 12
- 21