interpolation(_:)
Specifies the current level of quality for rendering an image that requires interpolation.
Declaration
func interpolation(_ interpolation: Image.Interpolation) -> ImageParameters
- interpolation:
The quality level, expressed as a value of the
Interpolationtype, 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.