A configuration that defines the appearance of a matched transition
source.
Members (3)
method · iOS 18.0+
background
Swift declaration
func background(_ style: Color) -> some MatchedTransitionSourceConfiguration
Specifies a color that will be drawn behind the content within the
matched transition source.
During a zoom transition, the background color fills the interpolated
shape as it groes from the matched transition source.
- Parameters:
- style: The color to apply behind the content within the
matched transition source..
Applies the specified shadow effect to the matched transition source.
- Parameters:
- color: The shadow's color.
- radius: A measure of how much to blur the shadow. Larger values
result in more blur.
- x: An amount to offset the shadow horizontally from the view.
- y: An amount to offset the shadow vertically from the view.
method · iOS 18.0+
clipShape
Swift declaration
func clipShape(_ shape: RoundedRectangle) -> some MatchedTransitionSourceConfiguration
Applies the specified shape as to the matched transition source,
clipping its content.
- Parameters:
- shape: The shape to use as a mask.