[iOS] Observable Object

:fire: Observable Object


:sparkles: 선언 방법

protocol ObservableObject : AnyObject


:sparkles: 개요

let john = Contact(name: “John Appleseed”, age: 24) cancellable = john.objectWillChange .sink { _ in print(“(john.age) will change”) } print(john.haveBirthday()) // Prints “24 will change” // Prints “25”

```

:memo: Reference