Update lottie-ios

This commit is contained in:
Ali
2022-06-06 18:25:58 +04:00
parent 6541feab69
commit 1c0113d616
601 changed files with 20997 additions and 19039 deletions

View File

@@ -0,0 +1,21 @@
//
// LottieImageProvider.swift
// lottie-swift
//
// Created by Brandon Withrow on 1/25/19.
//
import CoreGraphics
import Foundation
/// Image provider is a protocol that is used to supply images to `AnimationView`.
///
/// Some animations require a reference to an image. The image provider loads and
/// provides those images to the `AnimationView`. Lottie includes a couple of
/// prebuilt Image Providers that supply images from a Bundle, or from a FilePath.
///
/// Additionally custom Image Providers can be made to load images from a URL,
/// or to Cache images.
public protocol AnimationImageProvider {
func imageForAsset(asset: ImageAsset) -> CGImage?
}