Markers

Markers contained inside your animation can be used for playback purposes:

List the markers inside your animation:

let markers = DotLottieAnimation(fileName: "...", config: AnimationConfig(...)).markers()

Use a marker on load:

let anim = DotLottieAnimation(fileName: "...", config: AnimationConfig(..., marker: "feather"))

Reset markers:

let anim = DotLottieAnimation(fileName: "...", config: AnimationConfig(..., marker: "feather"))
// Removes the current marker
anim.setMarker("")