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

Align .speed modifier for Cocoa animations with SwiftUI #278

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

maximkrouk
Copy link

  • Align with SwiftUI animations

    A quote from SUI docs:

    • Setting the speed of an animation changes the duration of the animation by a factor of speed. A higher speed value causes a faster animation sequence due to a shorter duration. For example, a one-second animation with a speed of 2.0 completes in half the time (half a second).
    • Setting speed to a lower number slows the animation, extending its duration. For example, a one-second animation with a speed of 0.25 takes four seconds to complete.
  • Add issue reporting
    Since the behaviour is inverted now there is a chance of division by zero

- Align with SwiftUI animations
- Add issue reporting
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