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 mainBundle. Defaults tonil.
Discussion
SwiftUI ignores this image for accessibility purposes.