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, uses the main Bundle. Defaults to nil.