Skip to content

Commit 2adbebc

Browse files
committed
Make Actions conform to Equatable to avoid major changes
1 parent 16bd540 commit 2adbebc

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Sources/ComposableNavigation/ModalNavigation/ModalNavigation.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public struct ModalNavigation<Item: Equatable> {
2222
}
2323

2424
@CasePathable
25-
public enum Action {
25+
public enum Action: Equatable {
2626
case set(StyledItem?, animated: Bool = true)
2727
case dismiss(animated: Bool = true)
2828
case presentFullScreen(Item, animated: Bool = true)

Sources/ComposableNavigation/StackNavigation/StackNavigation.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public struct StackNavigation<Item: Equatable> {
2626
}
2727

2828
@CasePathable
29-
public enum Action {
29+
public enum Action: Equatable {
3030
case pushItem(Item, animated: Bool = true)
3131
case pushItems([Item], animated: Bool = true)
3232
case popItem(animated: Bool = true)

Sources/ComposableNavigation/TabNavigation/TabNavigation.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public struct TabNavigation<Item: Equatable> {
2828
}
2929

3030
@CasePathable
31-
public enum Action {
31+
public enum Action: Equatable {
3232
case setActiveItem(Item)
3333
case setActiveIndex(Int)
3434
case setItems([Item], animated: Bool = true)

0 commit comments

Comments
 (0)