<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSViewAnimation/Key",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:@T@NSViewAnimationKey"
  },
  "title" : "NSViewAnimation.Key"
}
-->

# NSViewAnimation.Key

The following string constants are keys for the dictionaries in the array passed into [`init(viewAnimations:)`](/documentation/AppKit/NSViewAnimation/init(viewAnimations:)) and [`viewAnimations`](/documentation/AppKit/NSViewAnimation/viewAnimations).

```
struct Key
```

## Topics

### Keys

[`static let effect: NSViewAnimation.Key`](/documentation/AppKit/NSViewAnimation/Key/effect)

An effect to apply to the animation.

[`static let endFrame: NSViewAnimation.Key`](/documentation/AppKit/NSViewAnimation/Key/endFrame)

The size and location of the window or view at the end of the animation.

[`static let startFrame: NSViewAnimation.Key`](/documentation/AppKit/NSViewAnimation/Key/startFrame)

The size and location of the window or view at the start of the animation.

[`static let target: NSViewAnimation.Key`](/documentation/AppKit/NSViewAnimation/Key/target)

The target of the animation.

### Initializers

[`init(rawValue: String)`](/documentation/AppKit/NSViewAnimation/Key/init(rawValue:))

## Relationships

### Conforms To

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

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

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

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

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

---

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)