Curve

public enum Curve

Specifies the supported animation curves.

animation.curve = .EaseIn
  • A linear animation curve causes an animation to occur evenly over its duration.

    Declaration

    Swift

    case Linear
  • An ease-out curve causes the animation to begin quickly, and then slow down as it completes.

    Declaration

    Swift

    case EaseOut
  • An ease-in curve causes the animation to begin slowly, and then speed up as it progresses.

    Declaration

    Swift

    case EaseIn
  • An ease-in ease-out curve causes the animation to begin slowly, accelerate through the middle of its duration, and then slow again before completing. This is the default curve for most animations.

    Declaration

    Swift

    case EaseInOut