Skip to content

Commit 8bd33df

Browse files
authored
refactor (#110)
1 parent 38354cb commit 8bd33df

File tree

5 files changed

+61
-33
lines changed

5 files changed

+61
-33
lines changed

MyLibrary/Sources/ScheduleFeature/Schedule.swift

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,12 @@ public struct Schedule {
4949
}
5050
}
5151

52-
@Reducer(state: .equatable)
52+
@Reducer
5353
public enum Path {
5454
case detail(ScheduleDetail)
5555
}
5656

57-
@Reducer(state: .equatable)
57+
@Reducer
5858
public enum Destination {}
5959

6060
@Dependency(DataClient.self) var dataClient
@@ -109,6 +109,9 @@ public struct Schedule {
109109
}
110110
}
111111

112+
extension Schedule.Path.State: Equatable {}
113+
extension Schedule.Destination.State: Equatable {}
114+
112115
@ViewAction(for: Schedule.self)
113116
public struct ScheduleView: View {
114117

MyLibrary/Sources/trySwiftFeature/Organizers.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public struct Organizers {
3535
}
3636
}
3737

38-
@Reducer(state: .equatable)
38+
@Reducer
3939
public enum Destination {
4040
case profile(Profile)
4141
}
@@ -60,6 +60,8 @@ public struct Organizers {
6060
}
6161
}
6262

63+
extension Organizers.Destination.State: Equatable {}
64+
6365
@ViewAction(for: Organizers.self)
6466
public struct OrganizersView: View {
6567

MyLibrary/Sources/trySwiftFeature/trySwift.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public struct TrySwift {
3333
}
3434
}
3535

36-
@Reducer(state: .equatable)
36+
@Reducer
3737
public enum Path {
3838
case organizers(Organizers)
3939
case profile(Profile)
@@ -79,6 +79,8 @@ public struct TrySwift {
7979
}
8080
}
8181

82+
extension TrySwift.Path.State: Equatable {}
83+
8284
@ViewAction(for: TrySwift.self)
8385
public struct TrySwiftView: View {
8486

trySwiftTokyo.xcworkspace/contents.xcworkspacedata

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

trySwiftTokyo.xcworkspace/xcshareddata/swiftpm/Package.resolved

Lines changed: 47 additions & 29 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)