An open API service indexing awesome lists of open source software.

https://github.com/clipy/rxscreeen

RxScreeen is a RxSwift wrapper for Screeen.
https://github.com/clipy/rxscreeen

clipy macos rx rxswift rxswift-extensions screenshot swift

Last synced: 12 months ago
JSON representation

RxScreeen is a RxSwift wrapper for Screeen.

Awesome Lists containing this project

README

          

# RxScreeen
![CI](https://github.com/Clipy/RxScreeen/workflows/Xcode-Build/badge.svg)
[![Release version](https://img.shields.io/github/release/Clipy/RxScreeen.svg)](https://github.com/Clipy/RxScreeen/releases/latest)
[![License: MIT](https://img.shields.io/github/license/Clipy/RxScreeen.svg)](https://github.com/Clipy/RxScreeen/blob/master/LICENSE)
[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)
[![Version](https://img.shields.io/cocoapods/v/RxScreeen.svg)](http://cocoadocs.org/docsets/RxScreeen)
[![Platform](https://img.shields.io/cocoapods/p/RxScreeen.svg)](http://cocoadocs.org/docsets/RxScreeen)
[![SPM supported](https://img.shields.io/badge/SPM-supported-DE5C43.svg?style=flat)](https://swift.org/package-manager)

RxScreeen is a RxSwift wrapper for Screeen.

## Usage
### CocoaPods
```
pod 'RxScreeen'
```

### Carthage
```
github "Clipy/RxScreeen"
github "Clipy/Screeen"
github "ReactiveX/RxSwift"
```

## Example
```swift
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
- [Screeen](https://github.com/Clipy/Screeen)

## 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.