Skip to content

Commit 55029c2

Browse files
authored
Fix delegate equatability in tutorial. (#2280)
1 parent 47b7ff2 commit 55029c2

File tree

7 files changed

+7
-7
lines changed

7 files changed

+7
-7
lines changed

Sources/ComposableArchitecture/Documentation.docc/Tutorials/MeetTheComposableArchitecture/02-Navigation/01-YourFirstPresentation/02-01-04-code-0000.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ struct AddContactFeature: ReducerProtocol {
99
case delegate(Delegate)
1010
case saveButtonTapped
1111
case setName(String)
12-
enum Delegate {
12+
enum Delegate: Equatable {
1313
case cancel
1414
case saveContact(Contact)
1515
}

Sources/ComposableArchitecture/Documentation.docc/Tutorials/MeetTheComposableArchitecture/02-Navigation/01-YourFirstPresentation/02-01-04-code-0001.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ struct AddContactFeature: ReducerProtocol {
99
case delegate(Delegate)
1010
case saveButtonTapped
1111
case setName(String)
12-
enum Delegate {
12+
enum Delegate: Equatable {
1313
case cancel
1414
case saveContact(Contact)
1515
}

Sources/ComposableArchitecture/Documentation.docc/Tutorials/MeetTheComposableArchitecture/02-Navigation/01-YourFirstPresentation/02-01-04-code-0002.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ struct AddContactFeature: ReducerProtocol {
99
case delegate(Delegate)
1010
case saveButtonTapped
1111
case setName(String)
12-
enum Delegate {
12+
enum Delegate: Equatable {
1313
case cancel
1414
case saveContact(Contact)
1515
}

Sources/ComposableArchitecture/Documentation.docc/Tutorials/MeetTheComposableArchitecture/02-Navigation/01-YourFirstPresentation/02-01-04-code-0004-previous.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ struct AddContactFeature: ReducerProtocol {
99
case delegate(Delegate)
1010
case saveButtonTapped
1111
case setName(String)
12-
enum Delegate {
12+
enum Delegate: Equatable {
1313
case cancel
1414
case saveContact(Contact)
1515
}

Sources/ComposableArchitecture/Documentation.docc/Tutorials/MeetTheComposableArchitecture/02-Navigation/01-YourFirstPresentation/02-01-04-code-0004.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ struct AddContactFeature: ReducerProtocol {
99
case delegate(Delegate)
1010
case saveButtonTapped
1111
case setName(String)
12-
enum Delegate {
12+
enum Delegate: Equatable {
1313
case cancel
1414
case saveContact(Contact)
1515
}

Sources/ComposableArchitecture/Documentation.docc/Tutorials/MeetTheComposableArchitecture/02-Navigation/01-YourFirstPresentation/02-01-04-code-0005.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ struct AddContactFeature: ReducerProtocol {
99
case delegate(Delegate)
1010
case saveButtonTapped
1111
case setName(String)
12-
enum Delegate {
12+
enum Delegate: Equatable {
1313
case cancel
1414
case saveContact(Contact)
1515
}

Sources/ComposableArchitecture/Documentation.docc/Tutorials/MeetTheComposableArchitecture/02-Navigation/01-YourFirstPresentation/02-01-04-code-0006.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ struct AddContactFeature: ReducerProtocol {
99
case delegate(Delegate)
1010
case saveButtonTapped
1111
case setName(String)
12-
enum Delegate {
12+
enum Delegate: Equatable {
1313
// case cancel
1414
case saveContact(Contact)
1515
}

0 commit comments

Comments
 (0)