Skip to content

Commit

Permalink
adds example about new properties parameter to Observable.from(object:)
Browse files Browse the repository at this point in the history
  • Loading branch information
icanzilb committed Mar 7, 2017
1 parent 5a7f4e6 commit 6b01d36
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,14 @@ Observable.from(object: ticker)

This API uses the [Realm object notifications](https://realm.io/news/realm-objc-swift-2.4/) under the hood to listen for changes.

This method will by default emit the object initial state as its first `next` event. You can disable this behavior by using the `emitInitialValue` parameter and setting it to `false`.

Finally you can set changes to which properties constitute an object change you'd like to observe for:

```swift
Observable.from(object: ticker, properties: ["name", "id", "family"]) ...
```

## Write transactions

##### `rx.add()`
Expand Down

0 comments on commit 6b01d36

Please sign in to comment.