Skip to content

Commit

Permalink
Make ObservableCollectionEvent constructor public
Browse files Browse the repository at this point in the history
  • Loading branch information
srdanrasic committed Dec 24, 2015
1 parent 400d8f8 commit d02db4c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
4 changes: 2 additions & 2 deletions ReactiveKit.podspec
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
Pod::Spec.new do |s|
s.name = "ReactiveKit"
s.version = "1.1.0"
s.version = "1.1.1"
s.summary = "A Swift Reactive Programming Framework"
s.description = "ReactiveKit is a collection of Swift frameworks for reactive and functional reactive programming."
s.homepage = "https://github.com/ReactiveKit/ReactiveKit"
s.license = 'MIT'
s.author = { "Srdan Rasic" => "[email protected]" }
s.source = { :git => "https://github.com/ReactiveKit/ReactiveKit.git", :tag => "v1.1.0" }
s.source = { :git => "https://github.com/ReactiveKit/ReactiveKit.git", :tag => "v1.1.1" }

s.ios.deployment_target = '8.0'
s.osx.deployment_target = '10.9'
Expand Down
2 changes: 1 addition & 1 deletion ReactiveKit/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>1.1.0</string>
<string>1.1.1</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,13 @@ public struct ObservableCollectionEvent<Collection: CollectionType>: ObservableC
public static func initial(collection: Collection) -> ObservableCollectionEvent<Collection> {
return ObservableCollectionEvent(collection: collection, inserts: [], deletes: [], updates: [])
}

public init(collection: Collection, inserts: [Collection.Index], deletes: [Collection.Index], updates: [Collection.Index]) {
self.collection = collection
self.inserts = inserts
self.deletes = deletes
self.updates = updates
}
}

public extension ObservableCollectionEvent {
Expand Down

0 comments on commit d02db4c

Please sign in to comment.