We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f18e6fe commit 3773f79Copy full SHA for 3773f79
1 file changed
ios/new/RiveReactNativeView.swift
@@ -64,7 +64,14 @@ class RiveReactNativeView: UIView {
64
case .none:
65
dataBind = .none
66
case .auto:
67
- dataBind = .auto
+ // Probe for a default ViewModel first. If the artboard has none,
68
+ // the SDK would fire an error event — skip auto-binding silently instead.
69
+ do {
70
+ let _ = try await config.file.getDefaultViewModelInfo(for: artboard)
71
+ dataBind = .auto
72
+ } catch {
73
+ dataBind = .none
74
+ }
75
case .instance(let vmi):
76
dataBind = .instance(vmi)
77
case .byName(let name):
0 commit comments