Skip to content

Commit 6c7fb60

Browse files
committed
Merge branch 'develop'
2 parents bee42cc + ceea911 commit 6c7fb60

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

Sources/DirectToSwiftUI/Views/BasicLook/Reusable/D2SNavigationLink.swift

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,16 +38,23 @@ public struct D2SNavigationLink<Label, Destination>: View
3838
public var body: some View {
3939
Group {
4040
if isActive != nil {
41-
NavigationLink(destination: destination.ruleContext(context),
41+
NavigationLink(destination: destination
42+
.environmentObject(context.object)
43+
.ruleContext(context),
4244
isActive: isActive!)
4345
{
4446
label
47+
.environmentObject(context.object)
4548
.ruleContext(context)
4649
}
4750
}
4851
else {
49-
NavigationLink(destination: destination.ruleContext(context)) {
52+
NavigationLink(destination: destination
53+
.environmentObject(context.object)
54+
.ruleContext(context))
55+
{
5056
label
57+
.environmentObject(context.object)
5158
.ruleContext(context)
5259
}
5360
}

0 commit comments

Comments
 (0)