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
1 answer

Modify swiftui back button

I am trying to modify swiftui back button by giving it different word and color. But an extra back button still appear even i did not include it. How can i get rid of it and make my cancel button does the navigate back like the original back…
Steven-Carrot
  • 2,368
  • 2
  • 12
  • 37
0
votes
0 answers

How can I increase space between navBar title and navigationView instead of it being attached

I am trying to increase the space between my navigationBarTitle and navigationView where my list is but it's not working. My list is attached to the navbar I try to add padding to the top but it shows this weird issue Here is the code import…
0
votes
1 answer

When loading a SwiftUI view from a UIKit view that has a NavigationController, the destination view jumps up on load if the title is inline

I'm not sure if this is a bug with the iOS 16 betas (currently running iOS Developer Beta 3 on Xcode 14 beta 3) or if I'm doing something wrong (most likely the latter). I'm trying to add a SwiftUI view to my existing UIKit app which uses…
Rachid
  • 315
  • 3
  • 11
0
votes
1 answer

SwiftUI - TabView does not hide NavigationBar on first load

I have an app that has "two root navigation" structures. The first view (you can think of a login screen) contains navigation links to other detail views which are dismissable. One of the navigation links goes to a TabView, which I want to be a "new…
0
votes
1 answer

How do I start my SwiftUI app in a children view?

Okay, here's what my app looks like. @main struct MemorizableApp: App { init() { FirebaseApp.configure() // Configure the FirebaseApp instance Database.database().isPersistenceEnabled = true //…
Jongwoo Lee
  • 774
  • 7
  • 20
0
votes
1 answer

Moving Horizontal ScrollView up top SwiftUI

I am trying to move the images in Horizontal ScrollView up top. They are currently at the bottom. I have tried adding NavigationView, .padding(), Spacer(), Adding a ZStack as a parent to HStack, and HStack(alignment: .top). I have been stuck for 3…
0
votes
0 answers

Does anyone know why my detail view is behaving like this?

I'll keep it quick. I have a view which leads to a detailView via navigationLink and displays the following screen: I wanted to hide the navigation back button when the user makes a tap gesture and bring it back when they make a swipe down gesture…
alex
  • 118
  • 1
  • 6
0
votes
1 answer

Do not want NavigationView to popup after some tap of the button

I am creating an app to give reward stickers for kids. When 10 stickers are collected, I want all stickers are removed from the main view and the image will be shown before removing everything. This image is shown at the 11th click of the button but…
Yua
  • 7
  • 2
0
votes
0 answers

How to push a View from bottom using swiftUI

I am drag Image using a drag Gesture. When the gestures action ends a another View push from bottom of the screen to top of the screen. Already am try NavigationLink(), But NavigationLink doesn't support inside the gesture action. How to handle this…
0
votes
1 answer

Different Behavior Between Light and Dark Modes Upon Change in Orientation?

I have a setup with tab views within a navigation view. I have been testing for some time with light mode showing that all views work properly when switched between portrait and landscape modes. When I switch to dark mode, all the tabs work fine…
0
votes
1 answer

How do I make buttons lead to other buttons in SwiftUI?

My code currently shows two buttons next to each other, one button being countries and the other being states. I want to make it so that once a button is pressed, a new set of buttons will appear. For example, if countries is pressed, the two new…
0
votes
1 answer

Dismiss Presented view without any click event

I am working with an app in SwiftUI.I have presented one view using .sheet(isPresented: $doIWantThisViewToShowUser, content: { DraggedUsersMenu() }) DraggedUsersMenu() is view I wanted to…
0
votes
0 answers

How to make Sidebar row remember its previous detail view progress for split view SwiftUI Mac catalyst?

I am creating Split View with NavigationView in SwiftUI MacCatalyst. In sidebar (master view), I have two rows: 'Add' and 'Profile'. Tapping on them changes the detail view. Suppose I click on 'Add' row, I see AddView() in detail view. Then I tap…
0
votes
1 answer

Handle a dynamic list in SwiftUI

I have a NavigationView in SwiftUI where the left pane and right pane show a list of names. The left pane is selectable and each selection has its own list in the right hand pane. Both the left pane and right pane are getting their data from the…
Fred Appelman
  • 716
  • 5
  • 13
0
votes
1 answer

iOS SwiftUI - NavigationLink open new view and close the current one

This is the Login() view: struct Login: View { @Environment(\.presentationMode) var presentationMode var body: some View{ VStack{ HStack{ …