---
title: "performZoom(_:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nswindow/performzoom(_:)"
---

# performZoom(_:)

This action method simulates the user clicking the zoom box by momentarily highlighting the button and then zooming the window.

## Declaration

```swift
func performZoom(_ sender: Any?)
```

## Parameters

- `sender`: The object sending the message.

## Discussion

Discussion If the window doesn’t have a zoom box or can’t be zoomed for some reason, the computer beeps.

## See Also

### Related Documentation

- [styleMask](appkit/nswindow/stylemask-swift.property.md)

### Sizing Windows

- [frame](appkit/nswindow/frame.md)
- [setFrameOrigin(_:)](appkit/nswindow/setframeorigin(_:).md)
- [setFrameTopLeftPoint(_:)](appkit/nswindow/setframetopleftpoint(_:).md)
- [constrainFrameRect(_:to:)](appkit/nswindow/constrainframerect(_:to:).md)
- [cascadeTopLeft(from:)](appkit/nswindow/cascadetopleft(from:).md)
- [setFrame(_:display:)](appkit/nswindow/setframe(_:display:).md)
- [setFrame(_:display:animate:)](appkit/nswindow/setframe(_:display:animate:).md)
- [animationResizeTime(_:)](appkit/nswindow/animationresizetime(_:).md)
- [aspectRatio](appkit/nswindow/aspectratio.md)
- [minSize](appkit/nswindow/minsize.md)
- [maxSize](appkit/nswindow/maxsize.md)
- [isZoomed](appkit/nswindow/iszoomed.md)
- [zoom(_:)](appkit/nswindow/zoom(_:).md)
- [resizeFlags](appkit/nswindow/resizeflags.md)
- [resizeIncrements](appkit/nswindow/resizeincrements.md)
