navigationlink Questions

2

Solved

I'm using this code to hide a navigation bar and Back button but when the view is loaded i still can see the back button for a fraction of second and then it disappears. Is there any way to prevent...
Bassorilievo asked 2/6, 2020 at 17:44

3

Solved

I'm populating a List with a Realm Result set. When navigating from this list it opens a new view then automatically closes that view. Using a struct presents no issue. Why would the second view...
Bursa asked 14/10, 2019 at 12:17

3

How I can make custom overlay over List row that will highlight it on tap. I am using NaviagationLink and I've changed UITableViewCell.appearance().cellSelectionStyle = .none in order to not us...
Sclaff asked 28/11, 2019 at 12:54

9

Solved

I have a view BugSplitView which works fine alone but causes a precondition failure: attribute failed to set an initial value error when navigated to in either preview or the simulator. The ...
Puggree asked 26/10, 2019 at 18:39

3

I am having some issues with a NavigationLink on an iPad with split view (landscape). Here is an example: Here is the code to reproduce the issue: import SwiftUI final class MyEnvironmentObjec...
Interrogatory asked 31/12, 2019 at 14:24

2

Solved

I would like to add an extra function to the NavigationLink. example code is something like this: struct ContentView: View { func yes () { print("yes") } var body: some View { NavigationView ...
Tax asked 5/3, 2020 at 15:37

10

Q1: Why are onAppears called twice? Q2: Alternatively, where can I make my network call? I have placed onAppears at a few different place in my code and they are all called twice. Ultimately, I'm t...
Intensify asked 24/7, 2020 at 20:14

5

So I am trying to create a custom pagination scrollView. I have been able to create that wrapper and the content inside that wrapper consists of a custom View. Inside that custom View i have got tw...
Engineer asked 14/8, 2019 at 12:39

5

Solved

I was working on an application with login and after login there are categories listed. And under each category there are some items listed horizontally. The thing is after login, main page appears...
Demaggio asked 11/12, 2019 at 5:5

2

Solved

I would like to put a condition to the NavigationLink. I have two variable, and the NavigationLink as below. @State var score = 0 @State var target = 10 NavigationLink(destination: level2())...
Repand asked 29/2, 2020 at 23:39

1

Solved

Having issues with a NavigationView and Sheet. I have the below flow: - ContentView: Has button that opens ContentView2 sheet - ContentView2: Has NavigationLink with header that goes to ContentVie...
Meprobamate asked 20/6, 2020 at 4:58

1

Solved

When tapping on a NavigationLink, it reduces the opacity slightly. Is there a way to disable this. I tried using .buttonStyle(PlainButtonStyle()) but that didn't have the desired effect. It is em...
Preemption asked 10/6, 2020 at 17:30

2

Solved

I’m using SwfitUI in my project and I have a NavigationView and List. I’m clicking cell after open the detail view and click navigation back button. I want to remove view (it’s struct, in SwiftUI) ...
Ba asked 15/4, 2020 at 21:18

1

Solved

I've got an onboarding process with a welcome view that has two buttons that open modal sheets for signup and login. Once signup is completed, the button should close the modal view for Signup and...
Rarity asked 13/11, 2019 at 14:19

0

I'm trying to implement a UICollectionView like View in SwiftUI which basically works fine. But when I scroll/drag inside the scroll view to scroll down, the tap is recognized on the NavigationLink...
Samul asked 17/10, 2019 at 20:42

1

I have a list of items. Clicking on one should push a new view to the navigation stack. I notice the NavigationLink doesn't work if the list is in edit mode. Is there a way to control that? I need ...
Circulate asked 4/10, 2019 at 12:0

1

Solved

I'm wondering if there's any way to start using SwiftUI in a legacy project and still be able to navigate back and forth SwiftUI scenes. That is, let's imagine I just want to support the last iOS 1...
Tali asked 17/9, 2019 at 12:38

1

Solved

I have following View and I need to pass item content to another View (DetailsEvent.swift), I am using NavigationLink . (I'm using Xcode 11 GM) struct Events: View { @ObservedObject var networkM...
Calpac asked 11/9, 2019 at 21:2

1

Solved

I'm looking for a way to display a view in my WatchOS application "one level in" from the NavigationView on app startup if certain conditions are met. I want the same effect as if I would have pre...
Ankylosaur asked 11/9, 2019 at 13:10

2

I can not get a NavigationLink in SwiftUI. The button is visible, but unfortunately this is gray and can not be clicked. Here is the code: import SwiftUI import Combine struct ContentView: View...
Gather asked 20/8, 2019 at 9:57
1

© 2022 - 2024 — McMap. All rights reserved.