Skip to content

Conversation

@mister-giga
Copy link

Added feature to delay animation after calling start(). This also works in case of minimising app and reopening it.
Even if we would call start() for several Pulsators with randomly delayed code, after app would receive applicationWillBecomeActive call, all pulsations would synchronise.

Delay specified as TimeInterval enables user to delay start of animation, it was possible to call start() with asyncAfter but in case of applicationWillBecomeActive all animations would reset and start at the same time.
Removed most of the constraints and inserted various horizontal StackViews inside vertical StackView for better readability and easier modifications. Also inserted delay slider to check new feature. That works via turning off and then on the switch or minimizing app and then opening again.
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.

1 participant