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

An animated mascot for your iOS app, with SwiftUI code.

One image in; out comes a Rive file your SwiftUI views drive with one mood number, ready-made SwiftUI files for the legacy and new Apple runtimes, transparent HEVC MOV for AVFoundation, Keynote and Final Cut, and, if you pick it, a launch animation for your first screen.

Code
SwiftUI, legacy + new Apple runtime
Files
.riv, HEVC-alpha MOV, MP4, GIF
Splash
LaunchStateMachine: intro → idle
Plan
Starter, $9/month
Gummo, a Charmotion demo character Live Rive file
Loops

This is the actual .riv our engine delivers, playing in your browser. It's the same state machine you drive from your app with one number input.

How do I add an animated mascot to SwiftUI?

Add the Rive Swift package, put the mascot's .riv in your bundle, and show it with RiveViewModel(fileName:stateMachineName:).view(). Set a number input such as mood to switch loops and fire triggers for one-shots, or use Rive's Apple runtime with Data Binding. Charmotion characters ship with ready SwiftUI files for both runtimes.

Animated Onboarding Mascot in SwiftUI

SwiftUI, ready to paste

import SwiftUI
import RiveRuntime   // Swift Package: rive-app/rive-ios

struct MascotView: View {
    @StateObject var mascot = RiveViewModel(
        fileName: "mascot",                       // mascot.riv in your bundle
        stateMachineName: "CharacterStateMachine"
    )
    var mood: Double = 0                          // 0 idle · 1 happy · 2 wave · 5 loading …

    var body: some View {
        mascot.view()
            .aspectRatio(1, contentMode: .fit)
            .onAppear { mascot.setInput("mood", value: mood) }
            .onChange(of: mood) { _, new in mascot.setInput("mood", value: new) }
    }
}

Shortened from the delivered file, which names the view and the mood enum after your character.

Both Apple runtimes

{Name}View.swift uses the legacy RiveViewModel with the state machine input. {Name}NewRuntimeView.swift uses the new async runtime with Data Binding through the Character view model.

Launch screen

When you pick launch, a separate LaunchStateMachine plays the 2.6 s intro once and settles on idle. Show it on your first screen after the static launch screen. It fires no completion event, so time the hand-off to the intro length.

Respect Reduce Motion

Check accessibilityReduceMotion and keep the mascot on idle (or a still poster) for people who ask for less motion.

Real output

Delivered files, exactly as you'd download them.

MP4 Every character

1080 × 1080 at 60 fps. Here: Gummo’s wave, from a delivered character.

Transparent WebM & MOV Every character

Alpha channel included, so the checkerboard shows through. MOV is HEVC with alpha for Apple apps and editors.

Kiko, GIF output

GIF Every character

Light previews for docs, email and chat, on a solid background.

9:16 launch video With launch

1080 × 1920 for stories and splash screens. Sizzle’s launch intro.

kiko.riv · 150 KB

CharacterStateMachine
number input mood
0 idle · 1 happy · 2 wave · 5 loading
fixed numbers, the same when you add animations
LaunchStateMachine
launch → idle, plays once (when you pick launch)

Rive state machine Every character

One file instead of a video per animation. It’s what powers the demo at the top of this page.

import { useRive, useStateMachineInput } from "@rive-app/react-canvas";

export function Kiko({ mood = 0 }) {
  const { rive, RiveComponent } = useRive({
    src: "/kiko.riv",
    stateMachine: "CharacterStateMachine",
    autoplay: true,
  });
  const input = useStateMachineInput(rive, "CharacterStateMachine", "mood");
  if (input) input.value = mood; // 0 idle · 1 happy · 2 wave · 5 loading
  return <RiveComponent style={{ width: 320, height: 320 }} />;
}

Paste-ready code Every character

Web, React and SwiftUI components named after your character.

Formats included per plan
FormatSpecsStarter & All in one
MP41080 × 1080, 60 fps, each animation you pickedIncluded
9:16 launch video1080 × 1920 MP4, when you picked launchIncluded
GIF480 px previews, solid backgroundIncluded
Rive (.riv)Your drawing on a soft mesh; Data Binding view model + legacy input: one mood number for the loops, a launch machine when you pick launchIncluded
Transparent WebMVP9 with alpha, 1080 × 1080Included
Transparent MOVHEVC with alphaIncluded
CodeWeb (HTML), React and SwiftUI (classic and new Apple runtime)Included
Download all (.zip)Rive file, code, README, AI_README and a transparent poster per animationIncluded
Video exportMP4, GIF, transparent WebM and MOV, 9:16: pick formats and animations on the character page, ready in about a minuteIncluded
AI assistants (MCP)Claude, Cursor, VS Code and CodexIncluded
Plans

Start free. Upgrade when you need more.

SwiftUI code, the .riv and HEVC-alpha MOV are in every paid plan, from Starter ($9/month). Prices in USD; tax is calculated at checkout by Creem.

Free

$0forever

Try it with your own logo and character.

  • 2 free credits for AI designs
  • Logo animation ideas (3 concepts)
  • No card needed
  • Works from Claude, Cursor, Codex
  • Email support

All in one

$100/month

For teams and several brands.

  • 175 credits a month
  • Animation 1, AI design 1, logo 5
  • Cinematic 3D video included
  • 3 refines per logo animation
  • Unused credits reset monthly
  • Priority builds and support
FAQ

Before you start.

More in the full FAQ.

Do I get App Store preview videos too?

You can export every animation as 1080 × 1080 MP4, plus a 1080 × 1920 launch video when you picked launch. App Previews must match Apple's exact device resolutions and show real app footage, so use these clips inside a screen recording of your app rather than as the preview itself.

Can I use the mascot without adding the Rive SDK?

Yes. Use the transparent HEVC MOV with AVPlayer, or the MP4 and GIF files. You lose live state switching, but every animation you picked can be exported as a file.

Can I use the delivered .riv in a UIKit app?

Yes. The same .riv plays in UIKit through RiveViewModel's view or RiveView; the delivered code is SwiftUI, and the state machine names and the mood input are identical.

Can the mascot appear in a widget or Live Activity?

Widgets and Live Activities can't run continuous animation, so use a still poster or a short transition there and keep the live Rive mascot inside the app.

See it in real app screens.

Our house characters, live in a splash, onboarding, loading, a website hero and an empty state.

See examples