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

How to Add a Lightweight Animated Mascot to an iOS App Clip Under 15MB

By the Charmotion team · Updated · How we write guides

Cover illustration for the guide: How to Add a Lightweight Animated Mascot to an iOS App Clip Under 15MB, with Charmotion demo characters

Put one small .riv file in the App Clip target, add Rive's SwiftUI runtime with Swift Package Manager, and show the mascot with RiveViewModel and .view(). Keep the file to one artboard with vector art. Apple's WWDC22 session said App Clips can reach 15 MB on iOS 16, so check the current figure before shipping.

Key takeaways

  • An App Clip has a size ceiling that differs by iOS version, so set your budget before you design the mascot.
  • A mascot clip works best as one small .riv file that belongs to the App Clip target.
  • Add the rive-ios package with Swift Package Manager and tick the App Clip target for the file.
  • Plan the first frame around the launch point, such as an NFC tag, App Clip code or iMessage link.
  • Archive the clip and read its size report before release, since Apple's figures vary by iOS version.

Already have a character or logo? See examples in real app screens: splash, onboarding, loading and empty-state screens, with the animation that plays in each.

How big can an iOS App Clip be?

Apple describes App Clips as lightweight versions of an iOS app that offer some of its functionality without a full install. They are launched through codes, NFC tags, links and Safari banners. Size is the constraint that shapes a mascot clip, so set the budget before you design anything. This guide shows how to add an animated mascot to an iOS App Clip with a single .riv file, Rive's SwiftUI runtime and a size check before release.

Apple's WWDC22 session said App Clips can reach 15 MB on iOS 16, and that clips under 10 MB remain compatible with iOS 15 and earlier. WWDC23 added a 50 MB ceiling for App Clips invoked digitally on iOS 17. Apple's App Clip documentation does not give a separate size rule for animation files (as of December 2026), so treat 15 MB as the target for a mascot clip and measure your own build.

Work out the budget in three parts: the app code the clip needs, the mascot file and any text or images on the first screen. Whatever the first screen does not need belongs in the full app, not in the clip. A mascot that appears in a clip usually needs one file and one view, so the budget is mostly about keeping that file lean.

What makes a Rive mascot file small enough for a clip?

A Rive file stays small when it holds vector shapes, bones and keyframes rather than pixels. Start from a clean export, not a screen grab or a pasted bitmap. These rules cover most of the size:

  • One artboard. Delete artboards the clip never shows. Each extra artboard is more data in the file.
  • Vector art. Avoid embedded PNG or JPEG layers. Raster layers are often the largest part of a mascot file.
  • Only the states you ship. Each animation adds keyframes. For a first release, keep idle, one success state and one waiting state.
  • A small state machine. One number input for mood is enough for most mascots, and it keeps the code that drives the file simple.

Asset slicing is part of Apple's app thinning, and an Apple Developer Forums reply describes it as a way to reduce the size of an App Clip downloaded on demand. Turn it on for the clip target and check the result after each build.

If you do not have a rigged file yet, Charmotion can produce one from a single front-facing character image. Its output is one .riv file with a character state machine and a mood number, and you can trim it to the states listed above. See the AI mascot animator for the input rules.

How do you add the Rive runtime to an App Clip target?

Rive's Apple runtime is distributed as the rive-ios Swift package. It supports SwiftUI, UIKit and AppKit. Rive's official guide lists iOS 14.0 as the minimum target for the Apple runtime, and gives a Swift Package Manager dependency on the rive-ios repository with a minimum version of 6.24.0 and the product name RiveRuntime. Rive's guide says CocoaPods is in maintenance mode and recommends Swift Package Manager, so use that.

  1. In Xcode, open File, choose Add Package Dependencies, and enter the rive-ios repository URL.
  2. Set the version rule to 6.24.0 or later.
  3. Add the RiveRuntime product to the App Clip target. Adding it only to the full app is the most common mistake, and the clip will then fail to build or load the file.

Next, add the .riv file. Drag it into the project, open the File Inspector and tick the App Clip target under Target Membership. A file that belongs only to the full app is not in the clip's bundle, so the view will show nothing when the clip runs. Check the clip's deployment target too, since it can be higher than the runtime minimum.

How do you show the mascot in the App Clip's SwiftUI view?

Create a RiveViewModel with the bundled file name, without the extension, and call .view() in the SwiftUI body. Rive's iOS and macOS guide shows this same pattern. Keep the view small and fixed in size so the clip's first screen lays out in one pass:

import SwiftUI
import RiveRuntime

struct ClipMascotView: View {
    @StateObject private var mascot = RiveViewModel(fileName: "mascot")

    var body: some View {
        mascot.view()
            .frame(width: 160, height: 160)
    }
}

To change the mood from app code, use Rive's data binding API. Rive's data binding guide shows creating a view model instance, binding it with artboard.createStateMachine(binding:), and passing the state machine to Rive(file:artboard:stateMachine:). Release 6.28.0 of rive-ios deprecated DataBind, the Rive initializer that accepts dataBind:, and the singular bindViewModelInstance method, so use the newer calls in new code.

A Charmotion character exposes a number property named mood. Idle is 0, happy is 1 and loading is 5. Set the number to match the moment, such as happy after a successful step. For more on the screen itself, see how to add animation to an iOS app.

How do App Clip launch points change the mascot?

An App Clip can open from several places, and the mascot's first frame has to suit each one. Apple Support lists four ways to invoke an App Clip: scanning an App Clip code, tapping an App Clip NFC tag, opening an iMessage link and using a Safari smart App Clip banner. Physical invocation by QR code, NFC tag or App Clip Code requires an advanced App Clip experience, as Apple's WWDC21 session explained.

  • NFC tag. Apple's developer news recommends an NFC-integrated App Clip Code use a Type 5 NFC tag at least 35 mm in diameter, or an equivalent.
  • App Clip code. When you generate codes in App Store Connect, you choose either NFC or Scan Only.
  • Location. A clip launched from an NFC tag or QR code may ask the user to confirm location. It receives only a yes or no answer about proximity, not precise location.

A mascot that greets a customer at a counter or a table should open on a short greeting, such as wave, then settle into idle. Keep that first moment brief, because the user is there for a task, not the character. For the broader case of a mascot on a launch screen, see how to make an animated mascot for your app.

How do you test the clip size and mascot before release?

Test on a device, not only in the simulator, and measure the archived clip. Apple's sessions gave different ceilings for different iOS versions, so test on the lowest iOS version you support. Apple's App Clip documentation does not describe a separate size rule for .riv assets as of December 2026, so the archive report is the number to trust.

  • Archive the App Clip and read the size report Xcode produces. Compare it with the ceiling for your deployment target.
  • Open the clip from every launch path you plan to use: App Clip code, NFC tag, iMessage link and Safari banner.
  • Check the first frame on a slow connection and with the file already on the device, so you see both the cold and warm start.
  • Change the mood number from the app and confirm the mascot moves to the right state.
  • Confirm the full app still loads the same .riv file, so the mascot looks the same in both places.

If the clip grows past the limit, cut states before cutting quality. Remove an artboard, drop a rarely used animation or move a secondary state into the full app. The clip only has to show one clear mascot moment, and the rest of the character can wait for the full install.

How to add an animated mascot to an iOS App Clip

  1. Set the size budget. Check Apple's current size figure for your deployment target and keep the mascot file to a share of it, leaving room for code and any text on the first screen.
  2. Export a small .riv file. Export one artboard with vector art and only the mascot states the clip needs, such as idle, a success state and a waiting state.
  3. Add the RiveRuntime package. In Xcode, add the rive-ios package with Swift Package Manager at version 6.24.0 or later and select the RiveRuntime product for the App Clip target.
  4. Add the file to the App Clip target. Drag the .riv file into the project and tick the App Clip target under Target Membership in the File Inspector.
  5. Show the mascot in SwiftUI. Create a RiveViewModel with the bundled file name and call .view() in the SwiftUI body, with a fixed frame size.
  6. Test every launch path. Archive the clip, read its size report, then open it from an App Clip code, NFC tag, iMessage link and Safari banner on a device.

Frequently asked questions

Does a Rive splash screen appear in an App Clip?

Exports made on Rive's free tier play a Rive splash screen, while paid plans export without one (as of December 2026). A splash screen adds to the first impression in a clip, so check your plan before the release export. The guide Is Rive Free? Rive Pricing, Plans and Commercial Use in 2026 covers the details.

Can the mascot load from a URL instead of the app bundle?

Yes. Rive's SwiftUI runtime can load a .riv file from a web URL through its webURL argument, which keeps the bundled clip smaller. The trade-off is a network request on first launch, so test a slow connection before you rely on it. Bundling the file avoids that dependency.

Does an App Clip mascot need a physical tag to appear?

No. Apple Support lists iMessage links and Safari smart App Clip banners as ways to open a clip, so a mascot can greet users without any tag. A physical tag matters only for a place such as a counter, a table or a product box.

Which mascot states should a first clip release include?

Start with idle, a success state such as happy and a waiting state such as loading. In Charmotion's mood numbers those are 0, 1 and 5. Add thinking or sleeping later if the clip's task needs them.

Sources

Related guides