Skip to content

Commit

Permalink
4.11.0
Browse files Browse the repository at this point in the history
  • Loading branch information
dankinsoid committed Mar 15, 2024
1 parent aa82803 commit ffae25b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ import PackageDescription
let package = Package(
name: "SomeProject",
dependencies: [
.package(url: "https://github.com/dankinsoid/VDFlow.git", from: "4.10.0")
.package(url: "https://github.com/dankinsoid/VDFlow.git", from: "4.11.0")
],
targets: [
.target(name: "SomeProject", dependencies: ["VDFlow"])
Expand Down
4 changes: 2 additions & 2 deletions Sources/VDFlow/NavigationSteps.swift
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,9 @@ private struct NavigationStackWrapper<Selection: Hashable>: View {
var body: some View {
NavigationStack(
path: Binding {
guard let selectedIndex else { return NavigationPath() }
guard let selectedIndex, selectedIndex > 0 else { return NavigationPath() }
return NavigationPath(
(0...selectedIndex).compactMap {
(1...selectedIndex).compactMap {
tag(of: children[$0], $0)
}
)
Expand Down

0 comments on commit ffae25b

Please sign in to comment.