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

How to Add an Interactive Rive Mascot to RevenueCat & Superwall Paywalls

By the Charmotion team · Updated · How we write guides

Cover illustration for the guide: How to Add an Interactive Rive Mascot to RevenueCat & Superwall Paywalls, with Charmotion demo characters

Place the Rive mascot in your app screen beside the paywall, not inside it, because neither RevenueCat nor Superwall documents a Rive element for its paywall builder. Install the Rive runtime for your platform, render the animation in the host view that presents the paywall, and set a mood value from purchase events so the character reacts.

Key takeaways

  • Neither RevenueCat nor Superwall documents a Rive element in its paywall builder, so the mascot lives in a view your app controls.
  • On iOS, Superwall returns a paywall as a view controller you can wrap in SwiftUI next to a mascot.
  • RevenueCat paywall layouts change from the dashboard, so test the mascot's size against the live paywall.
  • Map purchase events to mood numbers so the mascot shows loading, happy on success and sad on failure.
  • Rive's free plan exports show a splash screen, so check the plan before shipping.

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.

Can a Rive mascot go inside a RevenueCat or Superwall paywall?

Both platforms build the paywall screen in a dashboard, and your app displays it. RevenueCat Paywalls lets you change the layout from the RevenueCat dashboard without code changes or a new app release. Superwall describes its paywalls as remote too, with content and targeting managed from its dashboard.

This guide explains how to add a Rive animation to RevenueCat or Superwall paywalls without rebuilding the paywall itself. The mascot is a view your app owns, placed beside the paywall in the same screen, and the paywall keeps its dashboard layout.

Neither RevenueCat nor Superwall documents whether an app-drawn view can replace the dashboard paywall, and neither documents a Rive element in its paywall editor (as of December 2026). Plan the layout around the paywall, not instead of it.

Where should the mascot sit in the paywall flow?

Three placements work well. Pick one based on how much room the paywall needs and what the mascot should explain. Decide this before you write code, because a mascot above a paywall competes with the price. Keep it small, and keep the offer visible without scrolling on the smallest screen you support.

PlacementGood fitWatch for
Above the paywall, in one containerSingle-screen paywalls with space at the topThe paywall must keep its height on small phones
On a screen before the paywallValue explanations, onboarding, multi-step flowsUsers can skip it, so the paywall must still stand alone
On the screen after a purchaseThank-you and restore successDoes not cover a failed purchase, which happens on the paywall

For onboarding placements, see how to add a mascot to onboarding and empty states.

How do you set up RevenueCat paywalls with a Rive mascot?

The RevenueCat setup has four parts: the SDK, the Offering, the paywall and the host screen.

  1. Install the RevenueCat UI SDK for your platform. The paywall docs list this as the first step.
  2. In the RevenueCat dashboard, create an Offering and build a paywall for it. Each Offering can have its own paywall, and Experiments can test variations across Offerings and paywalls.
  3. Display the paywall in the app by following the displaying paywalls guide in the RevenueCat docs.
  4. Put the mascot in the host screen around that paywall view, as in the code below.

Two version rules matter. Multi-step paywalls need a higher minimum SDK version than single-screen paywalls, and older SDK versions show only the final screen of the flow. The legacy paywall docs list iOS 15.0, visionOS 1.0, Mac Catalyst 15.0, watchOS 8.0 and Android 7.0 (API level 24) as supported, and list macOS and tvOS as not supported. Check the current minimums on the install page before you choose a flow.

struct PaywallScreen: View {
    @State private var mood = 0

    var body: some View {
        VStack(spacing: 16) {
            MascotView(mood: mood)
                .frame(height: 180)
            RevenueCatPaywallHost { event in
                mood = moodFor(event)
            }
        }
    }
}

MascotView is your wrapper around the Rive view. RevenueCatPaywallHost is a wrapper you write around the RevenueCat paywall view that reports purchase results upward, so the parent can change the mascot. The Rive SwiftUI setup guide covers the mascot view itself.

Web apps use a different path. Web paywalls run inside a hosted Web Purchase Link or from a site built with the purchases-js SDK, and their UI is configured remotely. Express checkout for Apple Pay or Google Pay is added in the Paywall Editor.

How do you set up Superwall paywalls with a Rive mascot?

Superwall shows paywalls through named placements, which a campaign on the Superwall dashboard connects to a paywall. The host pattern is the same on each platform: a view you own holds the Rive view and the SDK paywall, and a callback returns events to the parent. Setup differs by platform.

  • Web: install the @superwall/paywalls-js package. React apps also add @superwall/paywalls-react and run with React 19. Create the instance with createSuperwall and your apiKey, and in React, get that instance through a SuperwallProvider.
  • iOS: add SuperwallKit with Swift Package Manager. The setup guide calls for Xcode 26 or later. getPaywall(forEvent:params:) returns a view controller that you can wrap and present inside SwiftUI, which is the route for placing a mascot beside it.
  • Android: add the SDK with Gradle. From version 2.8.0 it requires minSdk 23. The PaywallBuilder creates a PaywallView for custom presentation, and the presentation style set in the dashboard is ignored there, so your app handles the styling.
  • Flutter: PaywallView is available from Flutter SDK 2.9.0 on Android and iOS. It must sit in a parent with a bounded size, so give the host a fixed height for the mascot and let the paywall fill the rest.

Pin the SDK versions you test against. The install pages show version numbers that change, and Superwall's plan prices and limits are set on its own pricing page, which you should check directly.

How do you drive the mascot's mood from purchase events?

A paywall reports events, and the mascot should react to them. Map each event to a mood, then write the number to the Rive file. A Charmotion character file includes a CharacterViewModelMachine with a number property named mood, and a CharacterStateMachine with a number input named mood. Its mood numbers are fixed, so the mapping below works without changes. Charmotion is our product, and character animations need a paid plan, see pricing. For the general pattern, read how to drive Rive character mood states from app state.

Paywall eventMoodNumber
Paywall shownidle0
Products loadingloading5
Purchase succeededhappy1
Purchase failedsad4
Dismissedidle0

Characters have no success or error triggers, so happy stands in for success and sad for error. Set the value with the setter from your Rive runtime, using the exact property name in your file. The Rive Apple runtime docs cover the view model and state machine calls.

enum PaywallEvent {
    case shown, loading, purchased, failed, dismissed
}

func moodFor(_ event: PaywallEvent) -> Int {
    switch event {
    case .shown, .dismissed: return 0
    case .loading: return 5
    case .purchased: return 1
    case .failed: return 4
    }
}

Keep the mapping in one function so every paywall in the app sends the same numbers.

What should you check before shipping?

  • Rive plan. Exports from Rive's free plan play a Rive splash screen, and paid plans export without it. Read whether Rive is free before you ship a purchase screen.
  • Platform support. Match the paywall SDK to your targets. RevenueCat's legacy docs list iOS 15.0 and Android 7.0 (API level 24) as minimums and exclude macOS and tvOS.
  • SDK versions. Multi-step RevenueCat paywalls need a newer SDK. Superwall's Android SDK needs minSdk 23 from version 2.8.0.
  • Motion settings. Respect the system Reduce Motion setting by showing a still frame when it is on. The Reduce Motion guide for SwiftUI and UIKit covers the options.
  • Failure paths. Test cancel, failed purchase, restore and offline loading. Each should show a mood the user can read at a glance, and the paywall must remain usable in every case.
  • Pricing. Confirm RevenueCat and Superwall plan prices on their own pricing pages before you budget for a paywall stack.

How to add a Rive mascot beside a RevenueCat or Superwall paywall

  1. Prepare the mascot file. Export a .riv file with a number input or data-bound property named mood, so the app can set the mascot's state.
  2. Install the Rive runtime. Add the Rive runtime for each target platform, such as the Apple runtime for SwiftUI or the Flutter package for Flutter.
  3. Create the paywall in the vendor dashboard. In RevenueCat, build a paywall for an Offering. In Superwall, connect a paywall to a placement in a campaign.
  4. Build the host view. Place the mascot above or beside the presented paywall in a container you control, with a fixed height so the paywall keeps its layout.
  5. Send mood values from events. Map shown, loading, purchased, failed and dismissed events to mood numbers, then test each path in a sandbox before release.

Frequently asked questions

Can I use a Rive file from the free plan on a paywall?

Rive's free plan exports play a Rive splash screen, and paid plans export without it. A splash screen on a purchase screen is a poor fit, so plan for a paid seat before launch. Check the current plan terms on Rive's pricing page, and read the guide on whether Rive is free.

Do I need a separate Rive file for each paywall?

No. One .riv file with a mood input can serve every paywall in the app, because the host view sends the same mood numbers. Keep the artboard size fixed so the mascot does not shift when the paywall changes placement.

Can the mascot run on web paywalls too?

Web paywalls from RevenueCat and the Superwall web SDK both render in the browser, so a web mascot would be a separate Rive web runtime view placed beside them. The cited docs do not describe a Rive element in either web paywall editor, so confirm the layout with a test build before you design around it.

Sources

Related guides