Contents

interpolation(_:)

Specifies the current level of quality for rendering an image that requires interpolation.

Declaration

func interpolation(_ interpolation: Image.Interpolation) -> Image

Parameters

  • interpolation:

    The quality level, expressed as a value of the Interpolation type, that SwiftUI applies when interpolating an image.

Mentioned in

Return Value

An image with the given interpolation value set.

Discussion

See the article Fitting images into available space for examples of using interpolation(_:) when scaling an Image.

See Also

Specifying rendering behavior