<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSWindow/animationResizeTime(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSWindow(im)animationResizeTime:"
  },
  "title" : "animationResizeTime(_:)"
}
-->

# animationResizeTime(_:)

Specifies the duration of a smooth frame-size change.

```
func animationResizeTime(_ newFrame: NSRect) -> TimeInterval
```

## Parameters

`newFrame`

The frame rectangle specified in [`setFrame(_:display:animate:)`](/documentation/AppKit/NSWindow/setFrame(_:display:animate:)).

## Return Value

The duration of the frame size change.

## Discussion

Subclasses can override this method to control the total time for the frame change.

The `NSWindow` implementation uses the value from the `NSWindowResizeTime` user default as the time in seconds to resize by 150 pixels. If this value is unspecified, `NSWindowResizeTime` is 0.20 seconds (this default value may be different in different releases of macOS).

---

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)