---
title: "imageScale(_:)"
framework: swiftui
role: symbol
role_heading: Instance Method
path: "swiftui/view/imagescale(_:)"
---

# imageScale(_:)

Scales images within the view according to one of the relative sizes available including small, medium, and large images sizes.

## Declaration

```swift
nonisolated func imageScale(_ scale: Image.Scale) -> some View

```

## Parameters

- `scale`: One of the relative sizes provided by the image scale enumeration.

## Discussion

Discussion The example below shows the relative scaling effect. The system renders the image at a relative size based on the available space and configuration options of the image it is scaling. VStack {     HStack {         Image(systemName: "heart.fill")             .imageScale(.small)         Text("Small")     }     HStack {         Image(systemName: "heart.fill")             .imageScale(.medium)         Text("Medium")     }

HStack {         Image(systemName: "heart.fill")             .imageScale(.large)         Text("Large")     } }

## See Also

### Configuring an image

- [Fitting images into available space](swiftui/fitting-images-into-available-space.md)
- [imageScale](swiftui/environmentvalues/imagescale.md)
- [Image.Scale](swiftui/image/scale.md)
- [Image.Orientation](swiftui/image/orientation.md)
- [Image.ResizingMode](swiftui/image/resizingmode.md)
