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

# setIsMiniaturized(_:)

Sets the window’s miniaturized state to the value you specify.

## Declaration

```swift
func setIsMiniaturized(_ flag: Bool)
```

## Discussion

Discussion Depending on the current miniaturized state and the value of flag, the window may minimize to the Dock or expand from the Dock.

## See Also

### Setting Scripting Attributes

- [setIsVisible(_:)](appkit/nswindow/setisvisible(_:).md)
- [setIsZoomed(_:)](appkit/nswindow/setiszoomed(_:).md)
