ImageInterpolation

The level of quality for rendering an image that requires interpolation, such as a scaled image.

EnumerationiOS 13.0+macOS 10.15+tvOS 13.0+watchOS 6.0+Image.Interpolation in SwiftUI

Declaration

React
type ImageInterpolation = 'high' | 'low' | 'medium' | 'none';
Swift
enum Interpolation

Pass a literal, or build one with SwiftUI.ImageInterpolation from import { SwiftUI } from 'swiftui-react-native'.

Type properties

Overview

The Image.interpolation(_:) modifier specifies the interpolation behavior when using the Image.resizable(capInsets:resizingMode:) modifier on an Image. Use this behavior to prioritize rendering performance or image quality.

From Apple’s SwiftUI documentation. Code samples there are Swift.

Used by

See also

More in Other values.