swiftui-navigationlink Questions

1

Solved

For the reason outlined in the answer outlined in this question SwiftUI TabView brightness views vertical location the menu structure for my app is NavigationView -> TabView -> sub view with ...

2

Solved

Navigate to INCR: 3 and tap either the navigation bar back button or the dismiss button and you'll notice that same view is called again but this time it's a new version because the onAppear firstL...
Corduroys asked 22/9, 2021 at 20:24

2

I want to use NavigationView together with the ScrollView, but I am not seeing List items. struct ContentView: View { var body: some View { NavigationView { ScrollView{ VStack { Text("Some st...
Enclitic asked 26/4, 2020 at 8:34

3

Solved

I have a list of items in a Form in a NavigationView, each having a detail-view that can be reached with NavigationLink. When I add a new element to the list, I want to show its detail-view. For th...
Bijouterie asked 14/8, 2021 at 12:41

3

I've got a super simple SwiftUI master-detail app: import SwiftUI struct ContentView: View { @State private var imageNames = [String]() var body: some View { NavigationView { MasterView(imag...
Spalato asked 26/5, 2020 at 16:10

1

I'm trying to dismiss the keyboard when view dismissed but keyboard not dismiss properly, they only hide button but they showing height. More detail please check my code and screenshot. Keyboard s...
Guernica asked 6/7, 2021 at 9:9

1

I have a list in my macOS app’s sidebar. When I add the .onDrag modifier, dragging NSItemProvider works correctly, but clicking/selecting the item to trigger the NavigationLink gets blocked. struct...
Sorbian asked 31/1, 2021 at 14:25

4

Solved

I have a List with rows which push a View. That view has another List which pushing another View. The original List, and the first pushed List will update when the data changes. However, the last v...
Atalanta asked 7/4, 2020 at 6:37

0

I'm using a custom NavigationButton from this answer to be able to load data for a specific view when navigating to a new view from a list. It works great, but the problem is when I attempt to use ...
Meliamelic asked 31/5, 2021 at 20:27

1

Since Xcode 12.5, I am seeing a lot of "Unable to present. Please file a bug." console logs in the Xcode console which I remember not seeing prior to 12.5. This message is shown when I am...

3

I want to show the empty view (here: Text("Please select a person.")) after the deletion of a row has happend on an iPad. Currently: The detail view on an iPad will not get updated after the delet...
Incontinent asked 11/1, 2020 at 21:36

2

I want to programmatically be able to navigate to a link within a List of NavigationLinks when the view appears (building deep linking from push notification). I have a string -> Bool dictionary wh...
Layamon asked 9/6, 2020 at 5:16

2

Solved

I have a structure like this: contentView { navigationView { foreach { NavigationLink(ViewA(id: id)) } } } /// where ViewA contains an request trigger when it appears struct ViewA: View { @...
Coastwise asked 18/2, 2020 at 10:32

2

I can't find a way to go to the ContentView from ViewB without showing a secound NavigationView on top of the other NavigationView. struct ContentView: View { var body: some View { NavigationVi...
Union asked 25/12, 2019 at 15:0

2

Solved

In SwiftUI, when a NavigationLink is placed inside of a Form, an arrow automatically appears on the trailing side of the NavigationLink. How can the color of this arrow be changed? struct example:...
Trollope asked 26/4, 2020 at 17:13

0

I created a simple showcase where my problem can be reproduced; what I'm doing is navigating from the initial view => View1 => View2. The navigation from the initial to View1 happens via butt...
Inextensible asked 27/1, 2021 at 7:1

1

Solved

I want to remove the NavigationTitle Space without removing the back button. I have already tried this: .navigationBarItems(trailing: NavigationLink(destination: Preferences(viewModel: viewModel)....

2

Solved

I've come to SwiftUI from UIKit and I'm having trouble with a NavigationLink not animating when presenting a new View. I've set up the view structure to include the NavigationLink when the followin...
Copier asked 23/12, 2020 at 8:52

2

Solved

I'm trying to do a NavigationLink within a List or ForEach Loop in SwiftUI. Unfortunately I get a really weird behavior (e.g. when clicking on Leo it opens Karl, Opening Max points to Karl, too). I...
Amir asked 21/12, 2020 at 18:29

2

Solved

When I call NavigationImageView in my View , I want to send different View in every call , so I can navigate different views.But the problem is how can I send View parameter in NavigationLink. I tr...
Crossbreed asked 16/12, 2020 at 10:54

1

Solved

I'm trying to implement the logic of programmatic view pop in SwiftUI I set a tag on the items and create a corresponding variable for the selected item, but when I click the button on the DetaiVie...
Inharmonious asked 29/11, 2020 at 19:59

3

I'm using SwiftUI for a Mac app where the main window contains a NavigationView. This NavigationView contains a sidebar list. When an item in the sidebar is selected, it changes the view displayed ...
Lymphoma asked 18/12, 2019 at 4:26

1

FirstView Appeared is printed twice. Once when the view first loads and again when the NavigationLink is selected. import SwiftUI struct FirstView: View { var body: some View { NavigationView{...
Catalepsy asked 8/7, 2020 at 5:44

1

I want to build a very simple iOS 14 sidebar using SwiftUI. The setup is quite simple, I have three views HomeView, LibraryView and SettingsView and an enum representing each screen. enum Screen: H...
Partnership asked 6/7, 2020 at 17:30

1

Solved

I created an Apple Watch app using SwiftIU. The main view of the app is a List, with NavigationLink to another List. When I'm in one of the internal Lists, the back button isn't on the top of the v...
Disguise asked 16/10, 2020 at 18:38

© 2022 - 2025 — McMap. All rights reserved.