Skip to content

Commit

Permalink
4.12.0
Browse files Browse the repository at this point in the history
  • Loading branch information
dankinsoid committed Mar 15, 2024
1 parent ffae25b commit d538822
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.11.0")
.package(url: "https://github.com/dankinsoid/VDFlow.git", from: "4.12.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 @@ -93,8 +93,8 @@ private struct NavigationStackWrapper<Selection: Hashable>: View {
}
)
} set: { path in
guard path.count < children.count + 1 else { return }
let i = path.count - 1
guard path.count < children.count else { return }
let i = path.count
if let tag = tag(of: children[i], i) {
selection = tag
} else if path.isEmpty {
Expand Down

0 comments on commit d538822

Please sign in to comment.