As a client of the SDK I need to be able to set a custom animation type.
The animation currently defaults to spring() which takes a bit to long to complete. I added to possibility to override the default behavior with a Animation injected through a closure.
Technical decisions
Animation is injected through a closure allowing the client to perform run time logic. Animation closure is optional in initializer so the changes would not be breaking for existing clients. Current default behavior is maintained.
Summary
As a client of the SDK I need to be able to set a custom animation type.
The animation currently defaults to
spring()
which takes a bit to long to complete. I added to possibility to override the default behavior with a Animation injected through a closure.Technical decisions
Animation is injected through a closure allowing the client to perform run time logic. Animation closure is optional in initializer so the changes would not be breaking for existing clients. Current default behavior is maintained.
Call site exemple