Skip to content

Commit 92e3f03

Browse files
committed
Fix Property BindableType conformance.
1 parent 55fbcf3 commit 92e3f03

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

ReactiveKit.podspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
Pod::Spec.new do |s|
22
s.name = "ReactiveKit"
3-
s.version = "2.0.0-beta1"
3+
s.version = "2.0.0-beta2"
44
s.summary = "A Swift Reactive Programming Framework"
55
s.description = "ReactiveKit is a collection of Swift frameworks for reactive and functional reactive programming."
66
s.homepage = "https://github.com/ReactiveKit/ReactiveKit"
77
s.license = 'MIT'
88
s.author = { "Srdan Rasic" => "[email protected]" }
9-
s.source = { :git => "https://github.com/ReactiveKit/ReactiveKit.git", :tag => "v2.0.0-beta1" }
9+
s.source = { :git => "https://github.com/ReactiveKit/ReactiveKit.git", :tag => "v2.0.0-beta2" }
1010

1111
s.ios.deployment_target = '8.0'
1212
s.osx.deployment_target = '10.9'

Sources/Property.swift

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,10 @@ extension Property: BindableType {
6767
/// Can accept a disposable that will be disposed on receiver's deinit.
6868
public func observer(disconnectDisposable: Disposable) -> StreamEvent<T> -> () {
6969
disposeBag.addDisposable(disconnectDisposable)
70-
return { [weak self] in self?.subject.on($0) }
70+
return { [weak self] event in
71+
if let value = event.element {
72+
self?.value = value
73+
}
74+
}
7175
}
7276
}

0 commit comments

Comments
 (0)