<!--
{
  "availability" : [
    "macOS: 10.7.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSTableView/AnimationOptions",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:@E@NSTableViewAnimationOptions"
  },
  "title" : "NSTableView.AnimationOptions"
}
-->

# NSTableView.AnimationOptions

Specifies the animation effects to apply when inserting or removing rows.

```
struct AnimationOptions
```

## Topics

### Constants

[`NSTableViewAnimationEffectNone`](/documentation/AppKit/NSTableViewAnimationOptions/NSTableViewAnimationEffectNone)

Use no animation effects.

[`NSTableViewAnimationEffectFade`](/documentation/AppKit/NSTableView/AnimationOptions/effectFade)

Use a fade for row or column removal. The effect can be combined with any of the slide constants.

[`NSTableViewAnimationEffectGap`](/documentation/AppKit/NSTableView/AnimationOptions/effectGap)

Creates a gap for newly inserted rows. This is useful for drag and drop animations that animate to a newly opened gap and should be used in the delegate method [`tableView(_:acceptDrop:row:dropOperation:)`](/documentation/AppKit/NSTableViewDataSource/tableView(_:acceptDrop:row:dropOperation:)).

[`NSTableViewAnimationSlideUp`](/documentation/AppKit/NSTableView/AnimationOptions/slideUp)

Animates a row insertion or removal by sliding upward.

[`NSTableViewAnimationSlideDown`](/documentation/AppKit/NSTableView/AnimationOptions/slideDown)

Animates a row insertion or removal by sliding downward.

[`NSTableViewAnimationSlideLeft`](/documentation/AppKit/NSTableView/AnimationOptions/slideLeft)

Animates a row insertion by sliding from the left. Animates a row removal by sliding towards the left.

[`NSTableViewAnimationSlideRight`](/documentation/AppKit/NSTableView/AnimationOptions/slideRight)

Animates a row insertion by sliding from the right. Animates a row removal by sliding towards the right.

### Initializers

[`init(rawValue:)`](/documentation/AppKit/NSTableView/AnimationOptions/init(rawValue:))

## Relationships

### Conforms To

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

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

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

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

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

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

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

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

---

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)