File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
1
import SwiftUI
2
2
import Combine
3
3
4
- public class UIPilot < T: Hashable > : ObservableObject {
4
+ public class UIPilot < T: Equatable > : ObservableObject {
5
5
6
6
private let logger : Logger
7
7
@@ -71,7 +71,7 @@ public class UIPilot<T: Hashable>: ObservableObject {
71
71
72
72
}
73
73
74
- public struct UIPilotHost < T: Hashable , Screen: View > : View {
74
+ public struct UIPilotHost < T: Equatable , Screen: View > : View {
75
75
76
76
@ObservedObject
77
77
var pilot : UIPilot < T >
@@ -89,7 +89,7 @@ public struct UIPilotHost<T: Hashable, Screen: View>: View {
89
89
}
90
90
}
91
91
92
- struct NavigationControllerHost < T: Hashable , Screen: View > : UIViewControllerRepresentable {
92
+ struct NavigationControllerHost < T: Equatable , Screen: View > : UIViewControllerRepresentable {
93
93
let uipilot : UIPilot < T >
94
94
@ViewBuilder
95
95
let routeMap : ( T ) -> Screen
You can’t perform that action at this time.
0 commit comments