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 mainBundle. Defaults tonil.