Merge commit '7621e2f8dec938cf48181c8b10afc9b01f444e68' into beta

This commit is contained in:
Ilya Laktyushin
2025-12-06 02:17:48 +04:00
commit 8344b97e03
28070 changed files with 7995182 additions and 0 deletions
@@ -0,0 +1,22 @@
//
// 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()
}