This project aims to provide easing functions in swift in the simplest way possible.
Easing functions provide us to map an input range to an output range in various ways to create mathematical relations to use in our app. They are commonly used in visual animations and transitions.
Easing functions specify the rate of change of a parameter over time. - easings.net
See easings.net for a more detailed look into specifics each easing function.
let inputRange: ClosedRange<Double> = 0.0...1.0
let outputRange: ClosedRange<Double> = 0.0...10.0
let swease = Swease(inputRange: inputRange, outputRange: outputRange)
swease.map(value: 0.5, easing: .ease_in) // = 1.25
link |
Stars: 0 |
Last commit: 47 weeks ago |
Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics