I’ve a .riv file with two artboards (see screenshot):
• Button Play
• Stars
In SwiftUI I’m loading it with RiveRuntime. If I don’t specify an artboard, it hundreds the primary artboard (Button Play) and works.
If I do specify artboardName: "Stars", the app crashes saying it may’t discover the artboard.
What am I doing improper? Bug or my setup?
//
// ContentView.swift
// testRive
//
// Created by Damiano Miazzi on 06/11/2025.
//
import SwiftUI
import RiveRuntime
struct ContentView: View {
personal let vm2 = RiveViewModel(
fileName: "star",
stateMachineName: "State Machine 1",
artboardName: "Stars"
)
var physique: some View {
VStack {
Textual content("Howdy")
vm2.view()
}
.padding()
}
}
#Preview {
ContentView()
}
if I do not specified the artboard, the file works and cargo the primary artboard which is Button Play


