You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Lessons/Combine-Pt.3/assignments/Example-1.md
+4-2Lines changed: 4 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -99,7 +99,7 @@ var validatedPassword: AnyPublisher<String?, Never> {
99
99
}
100
100
```
101
101
102
-
This publisher will use the special type [CombineLatest](https://developer.apple.com/documentation/combine/publishers/combinelatest).The return value is a tuple with the values of password and email. This publisher wants to make sure everything is ready to submit and we'll use it to enable/disable the Register button.
102
+
This publisher will use the special type [CombineLatest](https://developer.apple.com/documentation/combine/publishers/combinelatest).The return value is a tuple with the values of password and email. This publisher wants to make sure everything is ready to submit and we'll use it to enable/disable the Register button.
103
103
104
104
```swift
105
105
var readyToSubmit: AnyPublisher<(String, String)?, Never> {
@@ -130,4 +130,6 @@ self.readyToSubmit
130
130
.receive(on: RunLoop.main)
131
131
.assign(to: \.isEnabled, on: registerButton)
132
132
.store(in: &cancellableSet)
133
-
```
133
+
```
134
+
135
+
This should be all you need to get the form working correctly. Try it out 😀
0 commit comments