ImageInterpolation
The level of quality for rendering an image that requires interpolation, such as a scaled image.
Declaration
type ImageInterpolation = 'high' | 'low' | 'medium' | 'none';enum InterpolationPass a literal, or build one with SwiftUI.ImageInterpolation from import { SwiftUI } from 'swiftui-react-native'.
Type properties
'high'SwiftUI.ImageInterpolation.highA value that indicates a high level of interpolation quality, which may slow down image rendering.
'low'SwiftUI.ImageInterpolation.lowA value that indicates a low level of interpolation quality, which may speed up image rendering.
'medium'SwiftUI.ImageInterpolation.mediumA value that indicates a medium level of interpolation quality, between the low- and high-quality values.
'none'SwiftUI.ImageInterpolation.noneA value that indicates SwiftUI doesn't interpolate image data.
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.
- AxisThe horizontal or vertical dimension in a 2D coordinate system.
- AxisSetAn efficient set of axes.
- ButtonRoleA value that describes the purpose of a button.
- CapsuleA capsule shape aligned inside the frame of the view containing it.
- CircleA circle centered on the frame of the view containing it.
- ConcentricRectangleA shape whose corners you configure, individually or uniformly, to be squared, rounded, or concentric relative to a container shape's corners.
- ContentMarginGuideA guide for resolving the content margins for a view.
- ContentMarginPlacementThe placement of margins.
- ContentModeConstants that define how a view's content fills the available space.
- DatePickerComponents
- DatePickerComponents2The date and time components that a date picker shows.
- DeviceHingeA type encapsulating the state of a single hinge.