<!--
{
  "availability" : [
    "iOS: 6.0.0 -",
    "iPadOS: 6.0.0 -",
    "macCatalyst: 13.1.0 -",
    "tvOS: -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIImage/resizingMode-swift.property",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UIImage(py)resizingMode"
  },
  "title" : "resizingMode"
}
-->

# resizingMode

The resizing mode of the image.

```
var resizingMode: UIImage.ResizingMode { get }
```

## Discussion

The default value for this property is [`UIImage.ResizingMode.tile`](/documentation/UIKit/UIImage/ResizingMode-swift.enum/tile). However, [`UIImage`](/documentation/UIKit/UIImage) will implement the resizing mode the fastest way possible while still retaining the desired visual appearance. This means that if the region to be resized is a 1-pixel region and this property is set to [`UIImage.ResizingMode.tile`](/documentation/UIKit/UIImage/ResizingMode-swift.enum/tile), the region will be stretched instead because the two are virtually indistinguishable for a region of that size and stretching is dramatically faster than tiling. To set the value of this property, you need to call either [`animatedResizableImageNamed(_:capInsets:resizingMode:duration:)`](/documentation/UIKit/UIImage/animatedResizableImageNamed(_:capInsets:resizingMode:duration:)) or [`resizableImage(withCapInsets:resizingMode:)`](/documentation/UIKit/UIImage/resizableImage(withCapInsets:resizingMode:)) and specify the resizing mode using the `resizingMode` parameter. For a list of possible values for this property, see [`UIImage.ResizingMode`](/documentation/UIKit/UIImage/ResizingMode-swift.enum).

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)