mirror of
https://github.com/rive-app/rive-ios.git
synced 2026-01-18 17:11:28 +01:00
fix: add nullptr check when retrieving text run on iOS at the artboard
Issue: https://github.com/rive-app/rive-ios/issues/286 Doing a small check on the artboard query for a text run for `nullptr` before returning from the Artboard Diffs= 35daf194f fix: add nullptr check when retrieving text run on iOS at the artboard (#6312) Co-authored-by: Zachary Plata <plata.zach@gmail.com>
This commit is contained in:
@@ -24,7 +24,11 @@ struct TextInputView: DismissableView {
|
||||
.padding()
|
||||
.onChange(of: userInput, perform: { newValue in
|
||||
if (!newValue.isEmpty) {
|
||||
try! rvm.setTextRunValue("MyRun", textValue: userInput)
|
||||
do {
|
||||
try rvm.setTextRunValue("MyRun", textValue: userInput)
|
||||
} catch {
|
||||
debugPrint(error)
|
||||
}
|
||||
}
|
||||
})
|
||||
rvm.view()
|
||||
|
||||
Reference in New Issue
Block a user