---
title: NSView.AutoresizingMask
framework: appkit
role: symbol
role_heading: Structure
path: appkit/nsview/autoresizingmask-swift.struct
---

# NSView.AutoresizingMask

Constants that specify the autoresizing behaviors for views.

## Declaration

```swift
struct AutoresizingMask
```

## Topics

### Getting the Autoresizing mask

- [none](appkit/nsview/autoresizingmask-swift.struct/none.md)
- [minXMargin](appkit/nsview/autoresizingmask-swift.struct/minxmargin.md)
- [width](appkit/nsview/autoresizingmask-swift.struct/width.md)
- [maxXMargin](appkit/nsview/autoresizingmask-swift.struct/maxxmargin.md)
- [minYMargin](appkit/nsview/autoresizingmask-swift.struct/minymargin.md)
- [height](appkit/nsview/autoresizingmask-swift.struct/height.md)
- [maxYMargin](appkit/nsview/autoresizingmask-swift.struct/maxymargin.md)

### Creating an Autoresizing Mask

- [init(rawValue:)](appkit/nsview/autoresizingmask-swift.struct/init(rawvalue:).md)

## Relationships

### Conforms To

- [BitwiseCopyable](swift/bitwisecopyable.md)
- [Equatable](swift/equatable.md)
- [ExpressibleByArrayLiteral](swift/expressiblebyarrayliteral.md)
- [OptionSet](swift/optionset.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)
- [SetAlgebra](swift/setalgebra.md)

## See Also

### Resizing Subviews

- [autoresizesSubviews](appkit/nsview/autoresizessubviews.md)
- [autoresizingMask](appkit/nsview/autoresizingmask-swift.property.md)
- [resizeSubviews(withOldSize:)](appkit/nsview/resizesubviews(witholdsize:).md)
- [resize(withOldSuperviewSize:)](appkit/nsview/resize(witholdsuperviewsize:).md)
