This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using CoreGraphics; | |
using UIKit; | |
// Xamarin port of the swift port of https://gist.github.com/raphaelschaad/6739676 | |
// Swift 4.2 port https://gist.github.com/tcldr/204c4bc87c5239a53239a46728214715 | |
// | |
// Basic Usage: | |
// var timingFunction = new TimingFunction(new UICubicTimingParameters(UIViewAnimationCurve.EaseInOut)); | |
// var progress = timingFunction.Progress(time); // where time is 0->duration, use 0-1 for easier normalised look ups |