rive-app / rive-ios

iOS runtime for Rive
MIT License
496 stars 57 forks source link

Solos Support #326

Closed frsisalima closed 2 months ago

frsisalima commented 4 months ago

How to use 'Solos' in SwiftUI to show/hide components, or if 'Solos' is not supported, how can I hide/show elements at runtime?

HayesGordon commented 2 months ago

Hey @frsisalima, Solos is an Editor feature and not a runtime feature. You can set a solo through the state machine, and set a state machine at runtime. See our docs on setting a state machine input: https://rive.app/community/doc/state-machines/docxeznG7iiK#controlling-state-machine-inputs

We have a video about the Solos feature here: https://www.youtube.com/watch?v=fRtsldzaHC8

We have a public Feature Request if you feel like this should be a runtime feature for all of Rive's runtimes.

Closing this issue for now!