Contents

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

Discussion

SwiftUI ignores this image for accessibility purposes.

See Also

Creating an image for decorative use