Plush MascotsGet help

Meet your first mascot.

A short guide to adding the package to an iOS 18+ or macOS 15+ SwiftUI app. You’ll need Xcode and the Plush Mascots source package.

Add the package

Unzip your package. In Xcode, choose File → Add Package Dependencies → Add Local and select the folder containing Package.swift. Add the PlushMascots library to your application target. Keep the package’s resources with its source files.

Drop it into a view

import SwiftUI
import PlushMascots

struct WelcomeMascot: View {
    var body: some View {
        PlushAvatar(look: .akmal, emotion: .happy, size: 160)
            .frame(width: 290, height: 300)
    }
}

The body size is in points. Leave room around the mascot for its fur, movement and shadow; the drawing canvas is 1.7 times the body size. Avoid clipping its immediate parent.

Celebrate a little win

struct CelebrationMascot: View {
    @State private var puppet = PlushPuppet()

    var body: some View {
        VStack {
            PlushAvatar(look: .malika, emotion: .happy,
                        size: 180, puppet: puppet)
                .frame(width: 320, height: 330)
            Button("Celebrate") {
                puppet.play(PlushCue(
                    emotion: .excited,
                    gesture: .bigHop,
                    effect: .confetti
                ))
            }
        }
    }
}

The cue temporarily changes the expression, performs the action, and starts the effect. Then the mascot returns to its standing mood.

Make a little trouble

puppet.play(PlushCue(
    emotion: .furious,
    gesture: .spit
))

The spit action creates its own droplets. They fly toward the viewer, land on the glass, and slide down.

Where to go next

The package includes the full API guide, audio integration, installation steps, troubleshooting and the QuickStart app. The original greeting samples play locally; generating new spoken lines requires your own speech provider integration.

Back to the playground or ask Jamik a question.