RxScreeen
RxScreeen is a RxSwift wrapper for Screeen.
Usage
CocoaPods
pod 'RxScreeen'
Carthage
github "Clipy/RxScreeen"
github "Clipy/Screeen"
github "ReactiveX/RxSwift"
Example
let observer = ScreenShotObserver()
observer.rx.image
.subscribe(onNext: { image in
// Add / Update / Remove events images
})
observer.rx.item
.subscribe(onNext: { item in
// Add / Update / Remove events NSMetadataItem
})
observer.rx.addedImage
.subscribe(onNext: { image in
// Add events image
})
observer.rx.updatedImage
.subscribe(onNext: { image in
// Update events image
})
observer.rx.removedImage
.subscribe(onNext: { image in
// Remove events image
})
observer.start()
Dependencies
How to Build
- Move to the project root directory
- Install dependency library with
carthage
orgit submodule
carthage checkout --use-submodules
orgit submodule update --init --recursive
- Open
RxScreeen.xcworkspace
on Xcode. - build.