Coder Social home page Coder Social logo

animationplanner's People

Contributors

pimcoumans avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

animationplanner's Issues

Cancelling sequence not working for complexer animations

Problem

Any animation containing multiple other animations aren’t passing the cancelling on to their sub-animations, only flat sequences are cancelled.

Proposed solution

Add func cancel() to Animatable (or a more appropriate protocol) so every animation can handle it for their specific case. Maybe create default implementation for Animation where it just immediately executes changes again, but making sure RunningSequence only calls this method when it’s the currently running animation. For years now (who new) UIView animations are ‘additive’, meaning they can’t be cancelled by performing the same changes as the animation. Either the currently running animations are played out and subsequent animations are cancelled, or a UIViewPropertyAnimators runs for each animations that can be cancelled.

No-op animations ignore delay

Issue

When no actual value is changed in an animation, the delay leading up to that animation is ignored as well considering nothing actually needs to animate.

Proposed solution

  1. Add test to confirm specific issue
  2. Make sure actual animation has taken place (no good idea how yet), use DispatchQueue.asyncAfter() when delay needs to be manually added

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.