RxScreeen is a RxSwift wrapper for Screeen.
pod 'RxScreeen'
github "Clipy/RxScreeen"
github "Clipy/Screeen"
github "ReactiveX/RxSwift"
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()
- 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.