swiftui-navigationlink Questions

1

I am trying to create a chat app using SwiftUI and Firebase. My current approach involves using chatrooms documents and within each chatroom have a subcollection of messages. Therefore, I am using ...

2

How do I pass a Binding via the new .navigationDestination(for: , destination: )? import SwiftUI enum TestEnum: String, Hashable, CaseIterable { case first, second, third } struct ContentView: V...

2

Solved

I have NavigationStack with its own navigation links, for iOS16 development. How to change the default slide transition to appear or a custom transition? Also do you apply the transition on the Nav...

6

As of now, I have an application built entirely using UIKit. However, I wish to be able to start implementing some SwiftUI Views to replace some UIViewControllers. I've been able to do this to na...

3

I have a list with some NavigationLinks as OutlineGroup: List { OutlineGroup(bundle.topics, children: \.children) { topic in NavigationLink(destination: DetailView(topic: topic)) { Label(topic.n...
Trelu asked 16/11, 2021 at 16:50

4

Solved

I have this list I a NavigationView. In dark mode the Chevron (red circle) is almost invisible. How can I set the Color of Chevron in a List. struct ContentView: View { var body: some View { ...
Jota asked 27/3, 2020 at 15:31

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

2

I have tried apple example Bringing robust navigation structure to your SwiftUI app so my code looks like this NavigationSplitView( columnVisibility: $navigationModel.columnVisibility ) { List(...

6

Solved

I have a simple use case where a screen pushes another screen using the NavigationLink. There is a strange behaviour iOS 14.5 beta (1, 2, 3), where the pushed screen is popped just after being push...
Belemnite asked 10/3, 2021 at 7:0

3

Solved

I'm trying to make an exercise app and when a user finishes a set of exercises, I want them to be able to press a button to go back into the home screen. There are 5 exercises in total, so I made 5...
Baptlsta asked 22/11, 2022 at 15:42

2

My home view contains a CustomView that opens a detailed view via a NavigationLink when tapped. The detailed view also contains the CustomView, just in a different location. Can I use the match geo...

2

I've added a .toolbar to the top level of a NavigationView that will eventually be used to select items in a list without using swipe gestures (up button, down button, etc.). I also have a .navigat...
Hanahanae asked 18/9, 2020 at 13:26

2

I'm using Xcode 12 with deployment for iOS 14.0. My home screen has a NavigationView Within the NavigationView there is a TabView (with 4 tabs) Within each tab are subviews that have buttons and N...

2

Solved

Let us consider the situation when you have ContentView and DestinationView. Both of them depend on some shared data, that typically lies inside the @ObservedObject var viewModel, that you pass fro...
Beverleybeverlie asked 29/9, 2020 at 14:33

4

Since installing Xcode 14, I am now getting the following error message printed in my console: NavigationLink presenting a value must appear inside a NavigationContent-based NavigationView. Link w...

9

Solved

I am searching for a solution to show the disclosure indicator chevron without having the need to wrap my view into an NavigationLink. For example I want to show the indicator but not navigate to a...
Danais asked 6/6, 2020 at 22:41

4

Solved

Given this simple NavigationView: struct ContentView : View { var body: some View { NavigationView { VStack { NavigationLink("Push Me", destination: Text("PUSHED VIEW")) } } } } Did anyon...
Weatherproof asked 1/8, 2019 at 9:8

5

Solved

In the new version of iOS and Xcode NavigationLink(isActive: , destination: , label: ) is deprecated. How do we control the status of NavigationLink then?
Ganef asked 19/7, 2022 at 12:25

2

I use my @EnvironmentObject to let my TeamData can use by different but it doesn't work well. When I go to another view by navigationLink in List, it's fine. When I tap a button to the same View, i...
Corrinecorrinne asked 19/1, 2020 at 17:34

3

Solved

I am trying to recreate the account followers flow seen in many social media apps in SwiftUI. You press a button on your profile to see a list of your followers You can click on any one of your fo...

2

is there a way in SwiftUI to change the standard behaviour of NavigationView/NavigationLink, which is to slide from one view to the next? I'd like to have a custom animation/transition like fade in...
Tasteful asked 10/12, 2019 at 16:1

2

Solved

I'll try to outline my case here, I have a NavigationLink I'm wanting to turn into it's own structure so I can re-use it. The Label inside the NavigationLink is the same for all the cases I'm using...
Randallrandan asked 18/1, 2021 at 21:7

4

Solved

I have two views written in swiftUI , say for example ViewA and ViewB. onAppear() of ViewA has an apiCall which calls when initially the view is loaded. I navigate to ViewB from ViewA using navigat...
Neukam asked 20/12, 2020 at 17:52

1

Solved

I have the following navigation stack using route to go to differnet views: import SwiftUI import FirebaseAuth import WebKit enum Route:String, Hashable { case linkSettings, linkWallet } struct D...

0

I want to know when my SwiftUI view has finished it's transition/animation in order to safely present additional views/modals. Example: I am in View A showing Sheet A. Within Sheet A I tap a button...

© 2022 - 2024 — McMap. All rights reserved.