LottieAnimationCache.swift 538 字节
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
//
//  LottieAnimationCache.swift
//  Lottie
//
//  Created by Marcelo Fabri on 10/17/22.
//

/// A customization point to configure which `AnimationCacheProvider` will be used.
public enum LottieAnimationCache {

  /// The animation cache that will be used when loading `LottieAnimation` models.
  /// Using an Animation Cache can increase performance when loading an animation multiple times.
  /// Defaults to DefaultAnimationCache.sharedCache.
  public static var shared: AnimationCacheProvider? = DefaultAnimationCache.sharedCache
}