From 98766356bc63b52ea3b26d0583115c2a16aff129 Mon Sep 17 00:00:00 2001 From: Brent Mifsud <18543934+BrentMifsud@users.noreply.github.com> Date: Fri, 2 Sep 2022 16:33:59 -0400 Subject: [PATCH] fix missing code block in readme --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index ed5218a..bab9363 100644 --- a/README.md +++ b/README.md @@ -115,9 +115,11 @@ Task 1 Value: New Value `AsyncValue` can be adapted to work seamlessly with `ObservableObject` with a single line of code: +```swift class MyObservableObject: ObservableObject { @AsyncValue var myValue: String = "Test" { // IMPORTANT: you must use `willSet` as that is what `@Published` uses under the hood willSet { objectWillChange.send() } } } +```