---
title: "setConstrainsToOriginalSize(_:)"
framework: quartz
role: symbol
role_heading: Instance Method
path: "quartz/ikimagebrowserview/setconstrainstooriginalsize(_:)"
---

# setConstrainsToOriginalSize(_:)

Sets whether the receiver constrains the cell’s image to its original size.

## Declaration

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

## Parameters

- `flag`: A flag that specifies whether to constrain the image. The default value is doc://com.apple.documentation/documentation/Swift/false.

## See Also

### Setting the Appearance

- [setCellsStyleMask(_:)](quartz/ikimagebrowserview/setcellsstylemask(_:).md)
- [cellsStyleMask()](quartz/ikimagebrowserview/cellsstylemask().md)
- [constrainsToOriginalSize()](quartz/ikimagebrowserview/constrainstooriginalsize().md)
- [setIntercellSpacing(_:)](quartz/ikimagebrowserview/setintercellspacing(_:).md)
- [intercellSpacing()](quartz/ikimagebrowserview/intercellspacing().md)
