Contents

replaceImage(with:)

Replaces the contents of this image markup with a CGImage.

Declaration

mutating func replaceImage(with image: CGImage)

Parameters

  • image:

    The new image to display.

Discussion

Image content is shown scaled to fill.