<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSViewAnimation/Key/target",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:@NSViewAnimationTargetKey"
  },
  "title" : "target"
}
-->

# target

The target of the animation.

```
static let target: NSViewAnimation.Key
```

## Discussion

The target can be either an [`NSView`](/documentation/AppKit/NSView) object or an [`NSWindow`](/documentation/AppKit/NSWindow) object. This property is required.

---

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)