interpolate
A content transition that indicates the views attempt to interpolate their contents during transitions, where appropriate.
Declaration
static let interpolate: ContentTransitionDiscussion
Text views can interpolate transitions when the text views have identical strings. Matching glyph pairs can animate changes to their color, position, size, and any variable properties. Interpolation can apply within a Font.Design case, but not between cases, or between entirely different fonts. For example, you can interpolate a change between thin and black variations of a font, since these are both cases of Font.Weight. However, you can’t interpolate between the default design of a font and its Italic version, because these are different fonts. Any changes that can’t show an interpolated animation use an opacity animation instead.
Symbol images created with the init(systemName:) initializer work the same way as text: changes within the same symbol attempt to interpolate the symbol’s paths. When interpolation is unavailable, the system uses an opacity transition instead.