Skip to content

Commit 8e8ce78

Browse files
Fix: Build error occurs in navigation tutorial and Remove unnecessary button actions (#3668)
* fix: Navigation using ifLet * fix: Cannot refer to `.addContact` * fix: delete unused button * fix: Grammar mistakes * Not necessary to specify full destination state type. * wip --------- Co-authored-by: Brandon Williams <[email protected]>
1 parent 47f753c commit 8e8ce78

16 files changed

+140
-24
lines changed

Sources/ComposableArchitecture/Documentation.docc/Tutorials/MeetTheComposableArchitecture/02-Navigation/02-MultipleDestinations/02-02-02-code-0011.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ struct ContactsFeature {
4848
return .none
4949
}
5050
}
51-
.ifLet(\.$destination, action: \.destination)
51+
.ifLet(\.$destination, action: \.destination) {
52+
Destination.body
53+
}
5254
}
5355
}

Sources/ComposableArchitecture/Documentation.docc/Tutorials/MeetTheComposableArchitecture/02-Navigation/03-TestingPresentation/02-03-01-code-0006-previous.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ struct ContactsFeature {
4949
}
5050
}
5151
.ifLet(\.$destination, action: \.destination) {
52-
Destination()
52+
Destination.body
5353
}
5454
}
5555
}

Sources/ComposableArchitecture/Documentation.docc/Tutorials/MeetTheComposableArchitecture/02-Navigation/03-TestingPresentation/02-03-01-code-0006.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ struct ContactsFeature {
5050
}
5151
}
5252
.ifLet(\.$destination, action: \.destination) {
53-
Destination()
53+
Destination.body
5454
}
5555
}
5656
}

Sources/ComposableArchitecture/Documentation.docc/Tutorials/MeetTheComposableArchitecture/02-Navigation/03-TestingPresentation/02-03-01-code-0007.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ struct ContactsFeature {
5050
}
5151
}
5252
.ifLet(\.$destination, action: \.destination) {
53-
Destination()
53+
Destination.body
5454
}
5555
}
5656
}

Sources/ComposableArchitecture/Documentation.docc/Tutorials/MeetTheComposableArchitecture/02-Navigation/03-TestingPresentation/02-03-03-code-0007-previous.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ struct ContactsFeature {
5050
}
5151
}
5252
.ifLet(\.$destination, action: \.destination) {
53-
Destination()
53+
Destination.body
5454
}
5555
}
5656
}

Sources/ComposableArchitecture/Documentation.docc/Tutorials/MeetTheComposableArchitecture/02-Navigation/03-TestingPresentation/02-03-03-code-0007.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ struct ContactsFeature {
4343
}
4444
}
4545
.ifLet(\.$destination, action: \.destination) {
46-
Destination()
46+
Destination.body
4747
}
4848
}
4949
}

Sources/ComposableArchitecture/Documentation.docc/Tutorials/MeetTheComposableArchitecture/02-Navigation/04-NavigationStacks/02-04-02-code-0000-previous.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ struct ContactsFeature {
4545
}
4646
}
4747
.ifLet(\.$destination, action: \.destination) {
48-
Destination()
48+
Destination.body
4949
}
5050
}
5151
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ struct ContactsFeature {
4646
}
4747
}
4848
.ifLet(\.$destination, action: \.destination) {
49-
Destination()
49+
Destination.body
5050
}
5151
}
5252
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ struct ContactsFeature {
5050
}
5151
}
5252
.ifLet(\.$destination, action: \.destination) {
53-
Destination()
53+
Destination.body
5454
}
5555
}
5656
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ struct ContactsFeature {
5050
}
5151
}
5252
.ifLet(\.$destination, action: \.destination) {
53-
Destination()
53+
Destination.body
5454
}
5555
.forEach(\.path, action: \.path) {
5656
ContactDetailFeature()

0 commit comments

Comments
 (0)