Enable delay before animation starts as TimeInterval#61
Open
mister-giga wants to merge 3 commits intoshu223:masterfrom
Open
Enable delay before animation starts as TimeInterval#61mister-giga wants to merge 3 commits intoshu223:masterfrom
mister-giga wants to merge 3 commits intoshu223:masterfrom
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.