diff --git a/README.md b/README.md index 040cfbc3aa..4f20b73ca1 100644 --- a/README.md +++ b/README.md @@ -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 ` +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.