Skip to content

Commit 1d08c06

Browse files
gatamarheckj
authored andcommitted
remove phrase
1 parent a487e76 commit 1d08c06

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/pattern-observableobject.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ struct ReactiveForm_Previews: PreviewProvider {
173173
<2> `@State` buttonIsDisabled is declared locally to this view, with a default value of `true`.
174174
<3> The projected value from the property wrapper (`$model.firstEntry` and `$model.secondEntry`) are used to pass a Binding to the TextField view element. The `Binding` will trigger updates back on the reference model when the user changes a value, and will let SwiftUI's components know that changes are about to happen if the exposed model is changing.
175175
<4> The validation messages, which are generated and assigned within the model is invisible to SwiftUI here as a combine publisher pipeline. Instead this only reacts to the model changes being exposed by those values changing, irregardless of what mechanism changed them.
176-
<5> As an example of how to use a published with <<reference#reference-onreceive,onReceive>>, an `onReceive` subscriber is used to listen to a publisher which is exposed from the model reference. In this case, we take the value and store is locally as `@State` within the SwiftUI view, but it could also be used after some transformation if that logic were more relevant to just the view display of the resulting values. In this case, we use it with `disabled` on `Button` to enabled SwiftUI to enable or disable that UI element based on the value stored in the `@State`.
176+
<5> As an example of how to use a published with <<reference#reference-onreceive,onReceive>>, an `onReceive` subscriber is used to listen to a publisher which is exposed from the model reference. In this case, we take the value and store is locally as `@State` within the SwiftUI view, but it could also be used after some transformation if that logic were more relevant to just the view display of the resulting values. In this case, we use it with `disabled` on `Button` to enable or disable that UI element based on the value stored in the `@State`.
177177

178178
// force a page break - in HTML rendering is just a <HR>
179179
<<<

0 commit comments

Comments
 (0)