We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 562c935 commit 29824dfCopy full SHA for 29824df
Sources/LiveViewNative/Views/Layout Containers/Presentation Containers/NavigationLink.swift
@@ -21,7 +21,7 @@ struct NavigationLink<R: CustomRegistry>: View {
21
22
@ViewBuilder
23
public var body: some View {
24
- if let href = element.attributeValue(for: "href").flatMap({
+ if let href = element.attributeValue(for: "destination").flatMap({
25
URL(string: $0, relativeTo: context.coordinator.url)?.appending(path: "").absoluteURL
26
}) {
27
SwiftUI.NavigationLink(
@@ -33,6 +33,9 @@ struct NavigationLink<R: CustomRegistry>: View {
33
context.buildChildren(of: element)
34
}
35
.disabled(element.attribute(named: "disabled") != nil)
36
+ .onAppear {
37
+ print(href)
38
+ }
39
40
41
0 commit comments