Skip to content

Latest commit

 

History

History
93 lines (61 loc) · 2.3 KB

README.md

File metadata and controls

93 lines (61 loc) · 2.3 KB

PhotosRx

Carthage Compatible Build Status codecov

About

The goal of this project is to incrementally add reactive support to all of Apple's Photos framework APis.

TODO

PHImageManager

  • requestImage(for:targetSize:contentMode:options:resultHandler:)
  • requestImageData(for:options:resultHandler:)
  • requestExportSession(forVideo:options:exportPreset:resultHandler:)
  • requestPlayerItem(forVideo:options:resultHandler:)
  • requestLivePhoto(for:targetSize:contentMode:options:resultHandler:)
  • requestAVAsset(forVideo:options:resultHandler:)

PHAsset

  • requestContentEditingInput(with:completionHandler)

AVAssetExportSession

  • exportAsynchronously(completionHandler:)
  • determineCompatibleFileTypes(completionHandler:)

Requirements

  • Xcode 10
  • Swift 4.2

Installation

Tested with pod --version: 1.1.1

In your Podfile:

use_frameworks!

target "YOUR_TARGET_NAME" do
  pod "PhotosRx"
end

Replace YOUR_TARGET_NAME and then, in the same directory, run:

pod install

Tested with carthage version: 0.18

Add this to Cartfile

github "rpassis/PhotosRx"

In the same directory, run:

carthage update

Link/Embed frameworks as explained here. Besides linking PhotosRx, you will also need to link RxSwift and RxCocoa.

Contributing

Help is always appreciated!

git clone [email protected]:rpassis/PhotosRx.git
cd PhotosRx

Or use your own forked repo.

carthage bootstrap

This is necessary in order to be able to build the framework on its own and run tests. However, if you prefer, you can instead develop it while it's within another project.

Before submitting a PR, please make sure that the tests pass.