Skip to content

Commit

Permalink
Updated project for new release
Browse files Browse the repository at this point in the history
  • Loading branch information
Aleksandr Dvornikov committed Feb 11, 2017
1 parent 073529c commit 4078258
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion PHAssetResourceInputStream.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'PHAssetResourceInputStream'
s.version = '0.0.3'
s.version = '0.0.4'
s.license = { :type => 'MIT', :file => 'LICENSE.md' }
s.summary = 'PHAssetResourceInputStream is an input stream implementation library for assets from Photos Framework'
s.homepage = 'https://github.com/fromcelticpark/PHAssetResourceInputStream'
Expand Down
9 changes: 4 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
[![Build Status](https://travis-ci.org/fromcelticpark/PHAssetResourceInputStream.svg?branch=master)](https://travis-ci.org/fromcelticpark/PHAssetResourceInputStream)
![Version](https://img.shields.io/cocoapods/v/PHAssetResourceInputStream.svg?style=flat)
![Platform](https://img.shields.io/cocoapods/p/PHAssetResourceInputStream.svg?style=flat)
![Swift](https://img.shields.io/badge/%20in-swift%203.0-orange.svg)
Expand Down Expand Up @@ -27,23 +28,21 @@ Bellow is the example of getting the size from a `PHAssetResource`:

```swift
let dataProducer = PHAssetResourceDataProducer(assetResource: assetResource)
var dataGenerator = DataGeneratorFromDataProducer(dataProducer: dataProducer)
let dataGenerator = DataGeneratorFromDataProducer(dataProducer: dataProducer)

do {
var size = 0
while let data = try dataGenerator.nextChunk() {
size += data.length
}
print(size)
} catch {
print("error occured")
} catch let error {
print("Error occured: \(error)")
}
```

## TODO
- [-] Add an example project
- [-] Add Travis CI support
- [-] Add tests for `PHAssetResourceInputStreamDataSource`

## Installation

Expand Down

0 comments on commit 4078258

Please sign in to comment.