Skip to content

Commit

Permalink
tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
rebeloper committed Dec 26, 2020
1 parent 6b7daa6 commit e07587e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Sources/NavigationKit/ButtonAsRootNavigationLink.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ public struct ButtonAsRootNavigationLink<Destination: View, Content: View>: View
public let content: Content

public var isActive: Binding<Bool>
@Environment(\.pushingInRoot) var pushingInRoot

public init(destination: Destination, @ViewBuilder content: () -> Content, isActive: Binding<Bool>) {
self.destination = destination
Expand All @@ -31,6 +30,6 @@ public struct ButtonAsRootNavigationLink<Destination: View, Content: View>: View
isActive: isActive,
label: { EmptyView() }
).isDetailLink(false).hidden()
).environment(\.pushingInRoot, isActive)
)
}
}

0 comments on commit e07587e

Please sign in to comment.