diff --git a/Images/example.png b/Images/example.png new file mode 100644 index 0000000..fe47787 Binary files /dev/null and b/Images/example.png differ diff --git a/Images/playground.png b/Images/playground.png new file mode 100644 index 0000000..1506694 Binary files /dev/null and b/Images/playground.png differ diff --git a/README.md b/README.md index ebda85e..05a45a7 100644 --- a/README.md +++ b/README.md @@ -67,7 +67,7 @@ center.continuum.post(keyPath: \ViewModel.text) ### Lifecycle of ContinuumObserver `func observe(_:,_:,on:,bindTo:,_:)` returns `ContinuumObserver`. -If `func cancel()` of `ContinuumObserver`, observation is cancelled. +If `func cancel()` of `ContinuumObserver` called, observation is cancelled. ```swift let observer = center.continuum.observe(viewModel, \.text, on: .main, bindTo: label, \.text) @@ -87,7 +87,21 @@ bag = ContinumeBag() // previous instance of ContinumeBag is released and observ ## Example +### Playground + +You can try **Continuum** with Playground. +Open Continuum.xcworkspace and run build. +You can try like this. + +![](./Images/playground.png) + +### Example Project + To run the example project, clone the repo, and run `pod install` from the Example directory first. +Open ContinuumSample.xcworkspace and run build. +You can try a simple counter app like this. + +![](./Images/example.png) ## Requirements