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

# performMiniaturize(_:)

Simulates the user clicking the minimize button by momentarily highlighting the button, then minimizing the window.

## Declaration

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

## Parameters

- `sender`: The message’s sender.

## Discussion

Discussion If the window doesn’t have a minimize button or can’t be minimized for some reason, the system emits the alert sound.

## See Also

### Related Documentation

- [styleMask](appkit/nswindow/stylemask-swift.property.md)
- [close()](appkit/nswindow/close().md)
- [performClose(_:)](appkit/nswindow/performclose(_:).md)

### Minimizing Windows

- [isMiniaturized](appkit/nswindow/isminiaturized.md)
- [miniaturize(_:)](appkit/nswindow/miniaturize(_:).md)
- [deminiaturize(_:)](appkit/nswindow/deminiaturize(_:).md)
- [miniwindowImage](appkit/nswindow/miniwindowimage.md)
- [miniwindowTitle](appkit/nswindow/miniwindowtitle.md)
