Initializer

init(decorative:bundle:)

Creates an unlabeled, decorative image. ラベル無しの、装飾的な画像を作成します。

Declaration 宣言

init(decorative name: String, bundle: Bundle? = nil)

Parameters パラメータ

name

The name of the image resource to lookup

bundle

The bundle to search for the image resource. If nil, SwiftUI uses the main Bundle. Defaults to nil.

Discussion 議論

SwiftUI ignores this image for accessibility purposes.

See Also 参照

Creating an Image for Decorative Use