Skip to content

Commit 7baaffe

Browse files
committed
Remove Hashable requirement
1 parent 0e56687 commit 7baaffe

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Sources/UIPilot/UIPilot.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import SwiftUI
22
import Combine
33

4-
public class UIPilot<T: Hashable>: ObservableObject {
4+
public class UIPilot<T: Equatable>: ObservableObject {
55

66
private let logger: Logger
77

@@ -71,7 +71,7 @@ public class UIPilot<T: Hashable>: ObservableObject {
7171

7272
}
7373

74-
public struct UIPilotHost<T: Hashable, Screen: View>: View {
74+
public struct UIPilotHost<T: Equatable, Screen: View>: View {
7575

7676
@ObservedObject
7777
var pilot: UIPilot<T>
@@ -89,7 +89,7 @@ public struct UIPilotHost<T: Hashable, Screen: View>: View {
8989
}
9090
}
9191

92-
struct NavigationControllerHost<T: Hashable, Screen: View>: UIViewControllerRepresentable {
92+
struct NavigationControllerHost<T: Equatable, Screen: View>: UIViewControllerRepresentable {
9393
let uipilot: UIPilot<T>
9494
@ViewBuilder
9595
let routeMap: (T) -> Screen

0 commit comments

Comments
 (0)