Skip to content

Commit 29824df

Browse files
committed
Use 'destination' as name
1 parent 562c935 commit 29824df

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Sources/LiveViewNative/Views/Layout Containers/Presentation Containers/NavigationLink.swift

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ struct NavigationLink<R: CustomRegistry>: View {
2121

2222
@ViewBuilder
2323
public var body: some View {
24-
if let href = element.attributeValue(for: "href").flatMap({
24+
if let href = element.attributeValue(for: "destination").flatMap({
2525
URL(string: $0, relativeTo: context.coordinator.url)?.appending(path: "").absoluteURL
2626
}) {
2727
SwiftUI.NavigationLink(
@@ -33,6 +33,9 @@ struct NavigationLink<R: CustomRegistry>: View {
3333
context.buildChildren(of: element)
3434
}
3535
.disabled(element.attribute(named: "disabled") != nil)
36+
.onAppear {
37+
print(href)
38+
}
3639
}
3740
}
3841
}

0 commit comments

Comments
 (0)