Merge pull request #19 from asowers1/Carthage-README

Carthage instructions in README
This commit is contained in:
Brandon Withrow 2017-02-03 07:58:06 -08:00 committed by GitHub
commit fd6e34f4ba

View File

@ -36,6 +36,17 @@ run
pod install
```
###Carthage
Install Carthage (https://github.com/Carthage/Carthage)
Add Lottie to your Cartfile
```
github "airbnb/lottie-ios" "master"
```
run
```
carthage update
```
## Using Lottie
Lottie supports iOS 8 and above.
Lottie animations can be loaded from bundled JSON or from a URL
@ -228,6 +239,9 @@ Get the Cocoapod or clone this repo and try out [the Example App](https://github
After installing the cocoapod into your project import Lottie with
`#import <Lottie/Lottie.h>`
Try with Carthage.
In your application targets “General” tab under the “Embedded Binaries” section, drag and drop lottie-ios.framework from the Carthage/Build/iOS directory that `carthage update` produced.
## Alternatives
1. Build animations by hand. Building animations by hand is a huge time commitment for design and engineering across Android and iOS. It's often hard or even impossible to justify spending so much time to get an animation right.
2. [Facebook Keyframes](https://github.com/facebookincubator/Keyframes). Keyframes is a wonderful new library from Facebook that they built for reactions. However, Keyframes doesn't support some of Lottie's features such as masks, mattes, trim paths, dash patterns, and more.