init(_:bundle:label:)
Creates a labeled image that you can use as content for controls, with the specified label.
Declaration
init(_ name: String, bundle: Bundle? = nil, label: Text)Parameters
- name:
The name of the image resource to lookup
- bundle:
The bundle to search for the image resource. If
nil, SwiftUI uses the mainBundle. Defaults tonil. - label:
The label associated with the image. SwiftUI uses the label for accessibility.