Instance Method インスタンスメソッド

resizable(capInsets:resizingMode:)

Sets the mode by which SwiftUI resizes an image to fit its space.

Declaration 宣言

func resizable(capInsets: EdgeInsets = EdgeInsets(), resizingMode: Image.ResizingMode = .stretch) -> Image

Return Value 戻り値

An image, with the new resizing behavior set.

Parameters パラメータ

capInsets

Inset values that indicate a portion of the image that SwiftUI doesn’t resize.

resizingMode

The mode by which SwiftUI resizes the image.