Skip to content
Limited timeStarter is now $9 a month instead of $20.See plans
charmotion

Best Animated Mascot Tools for SwiftUI & iOS Apps (Rive, Lottie & HEVC Alpha)

By the Charmotion team · Updated · How we write guides

Cover illustration for the guide: Best Animated Mascot Tools for SwiftUI & iOS Apps (Rive, Lottie & HEVC Alpha), with Charmotion demo characters

For most SwiftUI apps, Rive is the strongest of the animated mascot tools, because it ships a .riv file that a runtime plays and drives with state inputs. Lottie suits simple looping playback, and HEVC with alpha video works for short clips that Safari shows over a page. Choose by what the mascot must do, not by file format.

Key takeaways

  • Rive is the strongest choice when a SwiftUI mascot must react to app state.
  • Lottie and dotLottie suit looping or one-shot clips, while plain Lottie JSON offers little interaction.
  • HEVC with alpha plays with transparency in Safari, so web pages need a WebM fallback for other browsers.
  • Charmotion outputs a Rive file with mood inputs, made from one character image.
  • Test the chosen format on the devices you ship to before you commit.

What should a SwiftUI mascot tool deliver?

A mascot in an iOS app has three jobs. It has to look like the brand, play smoothly on a phone, and react when the app changes state. Tools differ most on the third job. Some produce a file the app plays and controls while it runs. Others produce a fixed clip that plays from start to finish.

Four things matter when you compare the best animated mascot tools for SwiftUI iOS apps:

  • Native playback. Does the app load the output through a runtime, or through a web view?
  • State control. Can code switch the mascot between idle, happy, loading and other moods?
  • Transparency. Does the background stay clear over the app's own colors?
  • Plan limits. Does the export carry a splash screen or watermark, and what does the editor cost?

SwiftUI sets the baseline. Apple's SwiftUI documentation lists iOS 13.0 as the minimum version for the framework. That number describes SwiftUI itself, not each animation runtime, so check each runtime's own requirements before you commit to it.

How does Rive work in a SwiftUI app?

Rive is an animation tool for interactive motion and UI. You build the mascot in the Rive Editor with state machines, data binding and layouts, then export a .riv file. Rive's runtimes are open source and play any .riv file, so the app does not need the editor to run the animation.

On Rive's Free plan, exported files play a Rive splash screen. Paid plans export without it. Read is Rive free for the plan details as of December 2026 before you ship.

For SwiftUI, Rive's Apple runtime ships as the rive-ios Swift package, which also supports UIKit and AppKit. Its controller, RiveViewModel, loads and displays a .riv file and drives its state machines and data-bound view model instances. A minimal screen looks like this:

import SwiftUI
import RiveRuntime

struct MascotView: View {
    var body: some View {
        RiveViewModel(fileName: "mascot").view()
    }
}

Check the module and initializer names against Rive's Apple runtime page for the version you install, since they change between releases. Keep the mood in your own state. Apple's State property wrapper reads and writes a value that SwiftUI manages, and its documentation advises declaring it private. When the value changes, SwiftUI updates the parts of the view that depend on it.

In practice, put a small model between the app and the mascot. It maps events to moods, such as loading while a request runs and happy when it succeeds. The same mascot can then follow the app across screens without a separate animation for each one. For the data binding pattern, see Rive data binding in SwiftUI, and for general setup, how to use Rive in SwiftUI.

Is Lottie a good choice for an iOS mascot?

Lottie is a JSON-based vector animation format. dotLottie (.lottie) is the packaging format from LottieFiles that bundles one or more animations with their assets. dotLottie files can also carry themes and state machines, and official runtimes play them on web, iOS and Android.

Lottie suits a mascot that loops or plays one clip: a loading character, a launch intro or a reaction that runs once. Many Lottie files come from After Effects through the Bodymovin extension. Bodymovin covers only a subset of what After Effects can do, so a scene with complex effects may not export cleanly.

The weak point is interaction. A plain Lottie JSON file has no state machine, so the app usually switches between separate clips in code. That works for a few fixed states. It gets harder when the mascot must blend between moods or respond to input while it plays. If the mascot needs that behavior, a dotLottie with a state machine or a Rive file is the better base.

For playback and looping in SwiftUI, read Lottie in SwiftUI. To compare the two formats on a launch screen, see Lottie vs Rive vs video for a splash screen.

When does HEVC with alpha video work for iOS?

HEVC with alpha is Apple's video format for transparency. The alpha layer is stored in the same video track as the picture, so a clip can sit over other content. Apple introduced it for Safari on iOS 13 and macOS Catalina. A player that does not understand alpha shows only the base video layer.

The limit is support outside Apple's own browser. Other browsers generally do not render the alpha layer. A 2026 Rotato guide says Safari supports HEVC with alpha while Chrome does not, and that Safari does not support VP9 WebM transparency. Chromium-based browsers and Firefox do show VP9 WebM alpha. So a web mascot usually needs two files: HEVC for Safari and WebM for everything else.

On macOS you can encode with Apple's avconvert tool or with FFmpeg 4.4.1 or newer. The DeNA HEVCPlayerView README gives this command:

ffmpeg -i clock.mov -c:v hevc_videotoolbox -require_sw 1 -allow_sw 1 -alpha_quality 0.5 -vtag hvc1 hevc.mov

The hvc1 tag matters because Apple software expects it on HEVC output. The same README shows how to play the file in Safari with a video element that has playsinline and muted attributes and a source typed as video/quicktime:

<video playsinline muted>
  <source src="hevc.mov" type="video/quicktime">
</video>

Inside a SwiftUI app, HEVC alpha video fits marketing clips, a web companion or a short web view moment. A mascot that reacts to app state belongs in Rive or Lottie. Test resolution, bitrate and file size on the devices you ship to before you commit to the format.

Where does Charmotion fit in this list?

Disclosure: Charmotion is our product.

Charmotion takes one finished, colored character image facing the viewer and returns one Rive (.riv) file. The file holds CharacterViewModelMachine with a number property named mood, CharacterStateMachine with a number input named mood, and LaunchStateMachine when launch is picked. Mood numbers are fixed: idle 0, happy 1, wave 2, thinking 3, sad 4, loading 5, listening 6, talking 7, sleeping 8 and attention 9.

The same export includes paste-ready SwiftUI code, plus transparent MOV (HEVC alpha) and transparent WebM videos for the web. Characters have no one-shot triggers, so show a success with happy and an error with sad. Idle is always included, and each other animation costs one credit.

Charmotion is a fit when you want a mascot built from one character image and a Rive mood set, not a hand-built rig. It does not export Lottie and it does not make 3D rigs. Plan details are on the pricing page, and the app setup is on the iOS mascot animation page.

Which tool should you pick for a SwiftUI mascot?

Start with the behavior the mascot needs, then pick the format. The table compares the four options in this guide.

Format or toolReacts to app stateTransparent in an appBest for
Rive (.riv)Yes, through state machines and data bindingYes, through the native runtimeInteractive mascots, onboarding, loading states
Lottie or dotLottieLimited; dotLottie can carry state machinesYes, for vector artworkLooping clips and simple intros
HEVC with alpha videoNo, it plays a fixed clipSafari only; other browsers need a fallbackWeb companions and marketing cuts
CharmotionYes, a Rive file with a mood inputYes, through the Rive fileMascots made from one character image
  • Rive when the mascot must react during use, such as in onboarding, loading or error states.
  • Lottie or dotLottie when a looping or one-shot clip is enough and your team already works in After Effects.
  • HEVC with alpha video when the clip lives on a page that Safari visitors see, or in a marketing cut.
  • Charmotion when you want a Rive mood set made from one character image.

Masko.ai is another option. It is an AI tool for generating and animating mascots, and its open-source player runs on web, React, Apple devices and Android. Check its own site for current plans and whether its player fits your SwiftUI stack.

Whatever you pick, keep motion optional for users who turn on Reduce Motion in iOS settings. Animated onboarding mascots are a common place where that choice matters, as covered in animated onboarding mascots in SwiftUI.

Frequently asked questions

Can a SwiftUI app play a Rive file without the Rive editor?

Yes. Rive's runtimes are open source and play any .riv file, so the app loads the exported file through the Apple runtime. The editor is needed only to design or change the animation. Check the runtime page for the version you install, since package names and APIs change over time.

Does a Lottie file in SwiftUI react to app state?

A plain Lottie JSON file does not carry a state machine, so reacting usually means switching between clips in code. dotLottie files can carry state machines and are played by official runtimes on iOS. Check whether the runtime you choose exposes them before you design around them.

Why does my transparent video look wrong in a non-Safari browser?

Browsers other than Safari generally do not render HEVC alpha, and Safari has been reported to ignore VP9 WebM alpha. Provide HEVC for Safari and WebM for Chromium-based browsers and Firefox, then test the page in each. A player without alpha support shows only the base layer.

Does Rive's free plan add a splash screen to my mascot?

Yes. On Rive's Free plan, exported files play a Rive splash screen, and paid plans export without it. Plan names, prices and seat limits change, so read the is-rive-free-pricing guide on this site for the current details as of December 2026 before choosing a plan.

Sources

Related guides