swiftui-navigationlink Questions
3
Solved
When wrapping views in a NavigationLink to create a Master-Detail flow, the NavigationLink appears to add padding (red) that I don't want.
If I comment out the NavigationLink, everything looks co...
Ocher asked 7/10, 2021 at 19:9
2
Solved
When I push more than one view, multiple back buttons are visible in the navigation bar.
struct ContentView: View {
var body: some View {
NavigationView {
NavigationLink(destination:SecView()) {...
Sarabia asked 20/10, 2019 at 22:6
3
Solved
When I update a binding property from an array in a pushed view 2+ layers down, the navigation pops back instantly after a change to the property.
Xcode 13.3 beta, iOS 15.
I created a simple demo a...
Poyang asked 11/9, 2021 at 12:25
3
Solved
I have created a wrapper that conforms to UIViewControllerRepresentable. I have created a UIViewController which contains a UIScrollView that has paging enabled.
The custom wrapper works as it shou...
Llama asked 14/8, 2019 at 18:47
1
Solved
I have tried different iterations of examples posted on this site but nothing is going right.
I have also tried following the examples listed here:
Navigation to new navigation types:
I am getting ...
Ashby asked 10/12, 2022 at 6:17
4
Solved
I have a navigation link and I need a different behavior when its label (MyView) is tapped depending on the edit mode (or any other condition):
If we are not in edit mode, I want to trigger the na...
Cabrera asked 2/4, 2022 at 18:8
5
Solved
I'm facing a weird issue with textfields and navigation view/link using SwiftUI
All I do is navigate through views using navigation links and inside the destination view there are some textfields. ...
Suppose asked 16/3, 2021 at 14:0
4
Solved
I am looking for solutions to the following bug in my example code below. I have tried to implement the Navigator Pattern with SwiftUI 4 and the iOS 16.0 Navigation API changeset.
The example below...
Patrimony asked 6/10, 2022 at 17:52
3
Console Bug: SwiftUI encountered an issue when pushing aNavigationLink. Please file a bug.
There is no problem when I don't use the isActive parameter in NavigationLink. However, I have to use the ...
Haye asked 2/2, 2021 at 20:57
1
I'm using the new NavigationLink in iOS 16 and hitting a problem where the target of the .navigationDestination is being called twice. Example code:
struct Content: View {
var body: some View {
N...
Chaucerian asked 20/9, 2022 at 16:27
2
I tried a SwiftUI tutorial, "Handling User Input".
https://developer.apple.com/tutorials/swiftui/handling-user-input
I tried implementing it with for instead of ForEach.
But an error aros...
Modernity asked 28/6, 2020 at 2:12
2
Solved
I'm using NavigationLink to navigate screens in NavigationView.
How can I remove screen from navigation stack?
Not just hide the navigation "Back" button but completely remove screen from...
Balmung asked 16/4, 2021 at 15:34
2
Solved
I'm trying to use NavigationSplitView with a DetailView that has a task or onAppear in it, but it seems it only runs once.
enum MenuItem: String, Hashable, Identifiable, CaseIterable {
case menu1
...
Klansman asked 7/8, 2022 at 13:0
14
I try to do the architecture for a bigger, production ready SwiftUI App. I am running all the time into the same problem which points to a major design flaw in SwiftUI.
Still nobody could give me a...
Judaic asked 19/4, 2020 at 12:55
1
I've run in to a strange behavior in SwiftUI that I can't seem to work around.
Given the following simple example app I experience this behavior: The toolbar item renders correctly on the initial r...
Elaboration asked 19/8, 2021 at 18:55
3
Solved
I have a question on how memory management works in SwiftUI's NavigationView stack. I have a view, in which I have declared NavigationView and NavigationLink, inside destination parameter of Naviga...
Camber asked 8/2, 2020 at 17:57
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
The problem occurs when I put VideoPlayer view inside NavigationView's parent view or child view. In this example the child view will show navigation bar:
struct ParentView: View {
var body: some ...
Appassionato asked 1/4, 2021 at 1:33
1
Solved
NavigationLink(destination: DetailView()) {
Image(systemName: "cloud.heavyrain")
.foregroundColor(Color.accentColor)
.font(.system(size: 66, weight: .regular))
}
.buttonStyle(PlainB...
Dualpurpose asked 1/2, 2022 at 22:24
2
Solved
Can you use a NavigationLink as a Menu's item in swiftUI?
It seems to do just nothing:
Menu {
NavigationLink(destination: Text("test1")) {
Text("item1")
}
NavigationLink(des...
Mantis asked 15/11, 2020 at 13:48
1
Solved
I have this issue where the navigation link pops back when a variable is updated. It's a bit confusing because this behavior doesn't occur elsewhere in the application, but I am doing the same thin...
Ciel asked 9/12, 2021 at 14:9
1
I have discovered a regression in watchOS 8.1RC with NavigationLink triggered from a TabView.
It's immediately dismissed.
It was working in watchOS 8.0 or in Simulator (watchOS 8.0).
Do you know a ...
Dentate asked 21/10, 2021 at 14:24
1
The code below worked fine in WatchOS 7 and 8.0, but now in 8.1 tapping on the row will navigate to the destination but then immediately navigates back to the root view.
I filed Feedback #FB9727188...
Dialectician asked 28/10, 2021 at 2:23
0
Bare minimum picker test app for watchOS.
import SwiftUI
@main
struct PickerTestApp: App {
var body: some Scene {
WindowGroup {
NavigationView {
ContentView()
}
}
}
}
ContentView
import ...
Acne asked 7/11, 2021 at 15:13
2
Solved
in iOS15, it is not working:
import SwiftUI
struct ContentView: View {
var body: some View {
NavigationView {
NavigationLink {
Dest1().navigationTitle("Dest1")
} label: {
Text("...
Piroshki asked 31/10, 2021 at 2:56
© 2022 - 2025 — McMap. All rights reserved.