Skip to content

Commit 1602cca

Browse files
committed
hm
1 parent 4c21bf3 commit 1602cca

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

Sources/VDFlow/EmptyStep.swift

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,22 @@ public struct EmptyStep: Hashable, Codable, CustomStringConvertible, Sendable {
1212
/// Creates a new empty step instance.
1313
public init() {}
1414
}
15+
16+
extension EmptyStep: StepsCollection {
17+
18+
public var selected: AllSteps {
19+
get { .none }
20+
set {}
21+
}
22+
23+
public static func step<T>(for keyPath: WritableKeyPath<EmptyStep, StepID<T>>) -> AllSteps? {
24+
AllSteps.none
25+
}
26+
27+
public enum AllSteps: Codable, Hashable, Sendable, CaseIterable {
28+
29+
case none
30+
}
31+
32+
public var _lastMutateID: MutateID? { nil }
33+
}

0 commit comments

Comments
 (0)