Skip to content

Helpful unit tested reactive classes and extensions for Apple's Photos framework

License

Notifications You must be signed in to change notification settings

rpassis/PhotosRx

Repository files navigation

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 git@github.com: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.

About

Helpful unit tested reactive classes and extensions for Apple's Photos framework

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published