Enumeration 列挙

Image.Scale

A scale to apply to vector images relative to text.

Declaration 宣言

enum Scale

Overview 概要

Use this type with the imageScale(_:) modifier, or the 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

Topics 話題

Getting Image Scales

Comparing Image Scales

Default Implementations 省略時実装

Relationships 関係

Conforms To 次に準拠

See Also 参照

Image Fundamentals