One Logo Pool Ball
SwiftUI · IOS API REFERENCE

MatchedTransitionSourceConfiguration

protocol · iOS 18.0+ · SDK 27.1

protocol MatchedTransitionSourceConfiguration : Sendable

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..

method · iOS 18.0+

shadow

Swift declaration
func shadow(color: Color = Color(.sRGBLinear, white: 0, opacity: 0.33), radius: CGFloat, x: CGFloat = 0, y: CGFloat = 0) -> some MatchedTransitionSourceConfiguration

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.

Skipped declarations

No declarations were skipped in this snapshot.

All SwiftUI types →