AnimationAsset

public struct AnimationAsset : ThemeAsset

Defines a Lottie animation asset

  • The path to the Lottie animation.

    Declaration

    Swift

    public let path: String?
  • The size of the animation.

    Declaration

    Swift

    public let size: CGSize
  • The type of asset (.animation).

    Declaration

    Swift

    public let type: AssetType
  • The loop mode of this asset

    Declaration

    Swift

    public let loopMode: LoopMode
  • Returns a new AnimationAsset

    Declaration

    Swift

    public init(path: String?, size: CGSize, loopMode: LoopMode = .playOnce)