I have 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 loads the first artboard (Button Play) and works. If I do specify artboardName: "Stars", the app crashes saying it can’t find the artboard.
What am I doing wrong? Bug or my setup?
//
// ContentView.swift
// testRive
//
// Created by Damiano Miazzi on 06/11/2025.
//
import SwiftUI
import RiveRuntime
struct ContentView: View {
private let vm2 = RiveViewModel(
fileName: "star",
stateMachineName: "State Machine 1",
artboardName: "Stars"
)
var body: some View {
VStack {
Text("Hello")
vm2.view()
}
.padding()
}
}
#Preview {
ContentView()
}
if I don't specified the artboard, the file works and load the first artboard which is Button Play

