You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

22 lines
587 B

//
// AnimationCacheProvider.swift
// lottie-swift
//
// Created by Brandon Withrow on 2/5/19.
//
import Foundation
/// `AnimationCacheProvider` is a protocol that describes an Animation Cache.
/// Animation Cache is used when loading `Animation` models. Using an Animation Cache
/// can increase performance when loading an animation multiple times.
///
/// Lottie comes with a prebuilt LRU Animation Cache.
public protocol AnimationCacheProvider {
func animation(forKey: String) -> Animation?
func setAnimation(_ animation: Animation, forKey: String)
func clearCache()
}