Questions tagged [swiftui-navigationlink]

For questions about NavigationLink - a component in Apple's SwiftUI framework that triggers a navigation presentation when pressed. When using this tag also include the more generic [swiftui] tag where possible.

Links:

974 questions
0
votes
2 answers

When I add NavigationLink in SwiftUI, it takes the content into the background

When I add NavigationLink in SwiftUI, it takes the content into the background. How can I solve this problem? My code: NavigationLink(destination: DrinksList()){ VStack{ Image("icecekler") .resizable() …
0
votes
1 answer

SwiftUI: Jump of List Items to headline in a Picker Form

Solved: After cleaning the Build Folder and updating to newest xCode version the problem was gone for me. I have a Navigation View and I am in a Form. My Problem is that in this Form I have a Section with a picker, which brings me by ios default…
Alex B
  • 131
  • 7
0
votes
1 answer

Can each list element navigate to a new view in SwiftUI?

I am new to SwiftUI and I am trying to create a list featuring each module taken at a university degree. I would like (when clicked on) each module to navigate to a separate, new, view. This is what I hope to achieve: HomePage -> ListPage -> each…
0
votes
1 answer

How to present new view in SwiftUI after login

I need to know who to present a new view using SwiftUI (following MVVM design pattern). For example, once the user enters the credentials to login, pressing the "login" button should take them to the home page of the app without being able to return…
0
votes
1 answer

Lists that have a VStack containing a NavigationLink makes the whole area of the VStack tappable instead of only the SubView

When I put a VStack in a List and one of the SubViews of the VStack is a NavigationLink the whole area of the VStack becomes tappable to trigger the transition as opposed to just the SubView. This is a simplified example of my problem: struct Test:…
rayaantaneja
  • 1,182
  • 7
  • 18
0
votes
1 answer

Safari view in swiftui displaying empty view

Hi everyone I am trying to display safari view as full screen modal using ZStack ZStack { HStack { VStack { Safari(url: url) } } …
0
votes
1 answer

NavigationLink with dynamic destination

I have a screen with 1 button that creates a new game when pressed. It should create a random type of game that will determine the colors being used everytime I press New Game. The issue is that once the view is loaded it never updates to select a…
Jeremy Sh
  • 609
  • 7
  • 24
0
votes
0 answers

How to Hide Custom Tab View when I navigate from Main View to Detail View? | SwiftUI Code

I have created a Custom Tab Bar & I want to Hide this Tab Bar when I navigate from Main View to Detail View. Tab Bar is appearing on both Main View & Detail View ContentView() to DetailView() Want to Hide Tab Bar in Detail View
Dc7
  • 1,405
  • 1
  • 10
  • 16
0
votes
1 answer

How to push to next view in the Navigation stack after the api call in SwiftUI?

I have a NavigationView and after the api call i need to push to the nextView (I don't want to use the ZStack because i should be able to perform push and pop operation after this).
Bala Murugan
  • 55
  • 1
  • 6
0
votes
0 answers

Xcode 11.2: precondition failure: imported node deleted before its value was read: 92

I have View A from where i can navigate to View B, by using this code. NavigationLink(destination: NonProfitView() { Text("CHANGE") .font(Font.system(size: 13)) .fontWeight(.medium) } and in View B I have list that i…
Nabeel Nazir
  • 420
  • 5
  • 15
0
votes
1 answer

Dismissing a View using a "static nav bar"

I've created a simple view acting as a navbar which contains a menu button and some text. I'm using this as a top-level element outside my NavigationView which allows me to have the view static across all child pages that come into view. The reason…
0
votes
1 answer

SwiftUI NavigationLink with Button

I have the following code, and the view changes clicking anywhere in the circular button. However, the self.user.day += 1 action only executes if I click directly on the button text. This is very curious behavior to me, being new to Swift &…
zbrusko
  • 13
  • 3
0
votes
1 answer

Hidden Navbar still pushes down view

I have a: contentView() SignUpView() SignInView() The contentView calls the SignInView() struct ContentView: View { var body: some View { NavigationView { SignInView() } } } In my SignUpView() I have: var body:…
Gurmukh Singh
  • 1,875
  • 3
  • 24
  • 62
0
votes
1 answer

SwiftUI .onDelete throws Fatal Error: Index out of range

I have list of Accounts that each of them has a detail page and they are connected through @Binding in the AccountDetailView. Current code work well, updates are fine. No problem at all. However when I added the onDelete modifier to the ForEach…
Faruk
  • 2,269
  • 31
  • 42
0
votes
1 answer

swiftUI NavigationLink not taking me to the correct View

I have the following: ScrollView(.horizontal, showsIndicators: false) { HStack { ForEach(events) { event in VStack { Image(event.image) …
Gurmukh Singh
  • 1,875
  • 3
  • 24
  • 62