Skip to content

fix(ios): restart render loop after setting state machine inputs#162

Merged
mfazekas merged 1 commit intomainfrom
fix/161-ios-play-on-input-set
Mar 2, 2026
Merged

fix(ios): restart render loop after setting state machine inputs#162
mfazekas merged 1 commit intomainfrom
fix/161-ios-play-on-input-set

Conversation

@mfazekas
Copy link
Collaborator

On iOS, when a state machine settles (isPlaying=false), setting an input doesn't restart the render loop so the change is never visually processed. Android handles this via its controller queue. Adds playIfNeeded() to the three input setters (setBooleanInputValue, setNumberInputValue, triggerInput) to match Android behavior.

Fixes #161

@mfazekas mfazekas force-pushed the fix/161-ios-play-on-input-set branch from 5802df0 to 7c4e7ee Compare February 27, 2026 06:52
@mfazekas mfazekas marked this pull request as ready for review February 27, 2026 06:52
@mfazekas mfazekas requested a review from HayesGordon February 27, 2026 06:52
On iOS, when a state machine settles (isPlaying=false), setting an input doesn't restart the render loop so the change is never visually processed. Android handles this via its controller queue. This adds playIfNeeded() to the three input setters to match Android behavior.

Fixes #161
@mfazekas mfazekas force-pushed the fix/161-ios-play-on-input-set branch from 7c4e7ee to ef3152d Compare February 27, 2026 13:26
@mfazekas mfazekas merged commit 1349bd8 into main Mar 2, 2026
9 checks passed
@mfazekas mfazekas deleted the fix/161-ios-play-on-input-set branch March 2, 2026 10:41
mfazekas pushed a commit that referenced this pull request Mar 2, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.2.5](v0.2.4...v0.2.5)
(2026-03-02)


### Bug Fixes

* **android:** pass autoBind to SDK when dataBind is set
([#156](#156))
([#157](#157))
([3d8e5a4](3d8e5a4))
* **ios:** restart render loop after setting state machine inputs
([#162](#162))
([1349bd8](1349bd8)),
closes
[#161](#161)

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

iOS: animation does not restart after changing state machine input machines

2 participants