Initializer

init(_:bundle:)

Creates a labeled image that you can use as content for controls. あなたがコントロールに対する内容として使用できるラベル付き画像を作成します。

Declaration 宣言

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

Parameters パラメータ

name

The name of the image resource to lookup, as well as the localization key with which to label the image.

bundle

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