<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSAnimation/Curve",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:@E@NSAnimationCurve"
  },
  "title" : "NSAnimation.Curve"
}
-->

# NSAnimation.Curve

These constants describe the curve of an animation—that is, the relative speed of an animation from start to finish.

```
enum Curve
```

## Overview

You initialize an `NSAnimation` object using one of these constants with [`init(duration:animationCurve:)`](/documentation/AppKit/NSAnimation/init(duration:animationCurve:)) and you can set it thereafter with the [`animationCurve`](/documentation/AppKit/NSAnimation/animationCurve) property.

## Topics

### Constants

[`NSAnimationEaseInOut`](/documentation/AppKit/NSAnimation/Curve/easeInOut)

Describes an S-curve in which the animation slowly speeds up and then slows down near the end of the animation. This constant is the default.

[`NSAnimationEaseIn`](/documentation/AppKit/NSAnimation/Curve/easeIn)

Describes an animation that slows down as it reaches the end.

[`NSAnimationEaseOut`](/documentation/AppKit/NSAnimation/Curve/easeOut)

Describes an animation that slowly speeds up from the start.

[`NSAnimationLinear`](/documentation/AppKit/NSAnimation/Curve/linear)

Describes an animation in which there is no change in frame rate.

## Relationships

### Conforms To

[`RawRepresentable`](/documentation/Swift/RawRepresentable)

[`BitwiseCopyable`](/documentation/Swift/BitwiseCopyable)

[`Hashable`](/documentation/Swift/Hashable)

[`Sendable`](/documentation/Swift/Sendable)

[`Equatable`](/documentation/Swift/Equatable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)