One Logo Pool Ball
SwiftUICore · IOS API REFERENCE

Image.Scale

enum · iOS 13.0+ · SDK 27.1

enum Scale

A scale to apply to vector images relative to text. Use this type with the ``View/imageScale(_:)`` modifier, or the ``EnvironmentValues/imageScale`` environment key, to set the image scale. The following example shows the three `Scale` values as applied to a system symbol image, each set against a text view: HStack { Image(systemName: "swift").imageScale(.small); Text("Small") } HStack { Image(systemName: "swift").imageScale(.medium); Text("Medium") } HStack { Image(systemName: "swift").imageScale(.large); Text("Large") } ![Vertically arranged text views that read Small, Medium, and Large. On the left of each view is a system image that uses the Swift symbol. The image next to the Small text is slightly smaller than the text. The image next to the Medium text matches the size of the text. The image next to the Large text is larger than the text.](SwiftUI-EnvironmentAdditions-Image-scale.png)

Members (0)

This type has no directly callable members in this snapshot. See the framework’s skipped declarations for unsupported APIs.

Skipped declarations

No declarations were skipped in this snapshot.

All SwiftUICore types →