Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable delay before animation starts as TimeInterval #61

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

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