---
title: maximumSize
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uicontentunavailableconfiguration-swift.struct/imageproperties-swift.struct/maximumsize
---

# maximumSize

A maximum size for the image.

## Declaration

```swift
var maximumSize: CGSize { get set }
```

## Discussion

Discussion The default value is CGSizeZero. Setting a width or height of zero makes the size unconstrained on that dimension. If the image exceeds maximumSize size on either dimension, the view reduces its size proportionately, maintaining aspect ratio.
