Contents

replaceImage(with:)

Replaces the contents of this image markup with an image file.

Declaration

mutating func replaceImage(with url: URL) throws

Parameters

  • url:

    The URL of the image file to load and display.

Discussion

Image content is shown scaled to fill.