Skip to content

Latest commit

 

History

History
79 lines (54 loc) · 2.2 KB

README.md

File metadata and controls

79 lines (54 loc) · 2.2 KB

dotLottieR

CI Status Version License Platform

Introducing dotLottie

dotLottie is an open-source file format that aggregates one or more Lottie files and their associated resources into a single file. They are ZIP archives compressed with the Deflate compression method and carry the file extension of ".lottie".

View documentation, FAQ, help, examples, and more at dotlottie.io

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

  • Swift 5.0
  • iOS 9
  • macOS 10.12
  • tvOS 9.0
  • watchOS 6.0

Installation

Cocoapods

dotLottieR-ios is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'dotLottieR', :git => 'https://github.com/dotlottie/dotlottieR-ios.git'

Swift Package Manager

.package(url: "https://github.com/dotlottie/dotlottieR-ios.git", from: "0.1.0")

Using dotLottieR

import dotLottieR
Enabling log
dotLottieR.isLogEnabled = true

Loading animation on iOS

let animator = DotLottieRAnimator(url: url, imageView: anyImageView)
animator.loopMode = .loop
animator.play()

Loading animation on watchOS

let animator = DotLottieRAnimator(url: url, imageView: anyInterfaceImage)
animator.loopMode = .loop
animator.play()

Author

Evandro Harrison Hoffmann | evandro.hoffmann@gmail.com

License

dotLottieR-ios is available under the MIT license. See the LICENSE file for more info.