timdonnelly / Advance

Physics-based animations for iOS, tvOS, and macOS.

Home Page:http://timdonnelly.github.io/Advance/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Please add the option to animate buttons made with NGraphics

Emasoft opened this issue · comments

Great library! I'm using the popular NGraphics lib (excellent for creating UI on iOS because it can render SVG vector images, and you can draw UI controls in Inkscape in minutes instead of coding them manually for days). So I want to make an important feature request: can you add the option to animate vector buttons made with the NGraphics library? Here is the link if you don't know it already:

https://github.com/praeclarum/NGraphics

For example it would be cool to:

  • interpolate between a "pushed" state and a "popped" state of a custom button made with NGraphics
  • interpolate between an "off" state and an "on" state in a custom switch made with NGraphics
  • interpolate between an "expanded" state and a "minimized" state of a box with NGraphics borders
  • interpolate between the 1% and the 100% of a progress bar/slider controller made with NGraphics
  • and so on..

It would be a marriage made in heaven!

Thanks in advance!

Adding support for third party libraries is beyond the scope of this project, that kind of integration should happen in your project. We provide building blocks that allow you to animate anything you want - for example:

import Advance
0.0.animateTo(3.0, duration: 2.0, timingFunction: LinearTimingFunction()) { (value) in
    // Animate whatever you want
}