CAMediaTimingFunction
extension CAMediaTimingFunction
-
A media timing function for ease-in
Declaration
Swift
@nonobjc public static let easeIn: CAMediaTimingFunction
-
A media timing function for ease-in and ease-out
Declaration
Swift
@nonobjc public static let easeInEaseOut: CAMediaTimingFunction
-
A media timing function for ease-out.
Declaration
Swift
@nonobjc public static let easeOut: CAMediaTimingFunction
-
A linear media timing function.
Declaration
Swift
@nonobjc public static let linear: CAMediaTimingFunction
-
Create a CAMediaTimingFunction from the specified control points.
Declaration
Swift
public static func controlPoints(_ x1: Float, _ y1: Float, _ x2: Float, _ y2: Float) -> CAMediaTimingFunction
Parameters
x1
The x coordinate of the first control point.
y1
The y coordinate of the first control point.
x2
The x coordinate of the second control point.
y2
The y coordinate of the second control point.
Return Value
A CAMediaTimingFunction with the specified control points.