Skip to content

Commit 963b67f

Browse files
committed
Merge branch 'ushu-object-property-notification'
2 parents 5f787f8 + dcb5a6c commit 963b67f

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

README.md

+8
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,14 @@ Observable.from(object: ticker)
111111

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

114+
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`.
115+
116+
Finally you can set changes to which properties constitute an object change you'd like to observe for:
117+
118+
```swift
119+
Observable.from(object: ticker, properties: ["name", "id", "family"]) ...
120+
```
121+
114122
## Write transactions
115123

116124
##### `rx.add()`

RxRealm.podspec

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
Pod::Spec.new do |s|
22

33
s.name = "RxRealm"
4-
s.version = "0.5.1"
5-
s.summary = "An Rx wrapper of Realm's collection type and write bindings"
4+
s.version = "0.5.2"
5+
s.summary = "An Rx wrapper of Realm's notifications and write bindings"
66

77
s.description = <<-DESC
88
This is an Rx extension that provides an easy and straight-forward way
@@ -24,7 +24,7 @@ Pod::Spec.new do |s|
2424
s.source_files = 'Pod/Classes/*.swift'
2525

2626
s.frameworks = 'Foundation'
27-
s.dependency 'RealmSwift', '~> 2.2'
27+
s.dependency 'RealmSwift', '~> 2.4'
2828
s.dependency 'RxSwift', '~> 3.1'
2929

3030
end

0 commit comments

Comments
 (0)