/RxScreeen

RxScreeen is a RxSwift wrapper for Screeen.

Primary LanguageSwiftMIT LicenseMIT

RxScreeen

CI Release version License: MIT Carthage compatible Version Platform SPM supported

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

  1. Move to the project root directory
  2. Install dependency library with carthage or git submodule
  3. carthage checkout --use-submodules or git submodule update --init --recursive
  4. Open RxScreeen.xcworkspace on Xcode.
  5. build.