---
title: alignmentRectInsets
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uiimage/alignmentrectinsets
---

# alignmentRectInsets

The alignment metadata for positioning the image during layout.

## Declaration

```swift
var alignmentRectInsets: UIEdgeInsets { get }
```

## Discussion

Discussion You can use the inset values as a hint for specifying the image contents more precisely. For example, if you have a 20 x 20 pixel icon that includes a glow effect, you might set the insets to {{2, 2}, {16, 16}} to indicate the position of the underlying icon without the glow effect. Objects that incorporate images can use these insets to place the image properly within their content.

## See Also

### Accessing image attributes

- [imageOrientation](uikit/uiimage/imageorientation.md)
- [UIImage.Orientation](uikit/uiimage/orientation.md)
- [flipsForRightToLeftLayoutDirection](uikit/uiimage/flipsforrighttoleftlayoutdirection.md)
- [resizingMode](uikit/uiimage/resizingmode-swift.property.md)
- [UIImage.ResizingMode](uikit/uiimage/resizingmode-swift.enum.md)
- [duration](uikit/uiimage/duration.md)
- [capInsets](uikit/uiimage/capinsets.md)
- [isSymbolImage](uikit/uiimage/issymbolimage.md)
