One Logo Pool Ball
SwiftUI · IOS API REFERENCE

ScrollTransitionConfiguration.Threshold

struct · iOS 17.0+ · SDK 27.1

struct Threshold

Describes a specific point in the progression of a target view within a container from hidden (fully outside the container) to visible.

Members (6)

method · iOS 17.0+

interpolated

TypeScript
interpolated(other: ScrollTransitionConfiguration_Threshold, amount: number): ScrollTransitionConfiguration_Threshold
Swift declaration
func interpolated(towards other: ScrollTransitionConfiguration.Threshold, amount: Double) -> ScrollTransitionConfiguration.Threshold

Creates a new threshold that combines this threshold value with another threshold, interpolated by the given amount. - Parameters: - other: The second threshold value. - amount: The ratio with which this threshold is combined with the given threshold, where zero is equal to this threshold, 1.0 is equal to `other`, and values in between combine the two thresholds.

method · iOS 17.0+

inset

TypeScript
inset(distance: number): ScrollTransitionConfiguration_Threshold
Swift declaration
func inset(by distance: Double) -> ScrollTransitionConfiguration.Threshold

Returns a threshold that is met when the target view is closer to the center of the container by `distance`. Use negative values to move the threshold away from the center.

get · iOS 17.0+

hidden

TypeScript
static get hidden(): ScrollTransitionConfiguration_Threshold
Swift declaration
static let hidden: ScrollTransitionConfiguration.Threshold
get · iOS 17.0+

visible

TypeScript
static get visible(): ScrollTransitionConfiguration_Threshold
Swift declaration
static let visible: ScrollTransitionConfiguration.Threshold
static · iOS 17.0+

visible

TypeScript
static visible32136(amount: number): ScrollTransitionConfiguration_Threshold
Swift declaration
static func visible(_ amount: Double) -> ScrollTransitionConfiguration.Threshold

The target view is visible by the given amount, where zero is fully hidden, and one is fully visible. Values less than zero or greater than one are clamped.

get · iOS 17.0+

centered

TypeScript
static get centered(): ScrollTransitionConfiguration_Threshold
Swift declaration
static var centered: ScrollTransitionConfiguration.Threshold { get }

The target view is centered within the container

Skipped declarations

No declarations were skipped in this snapshot.

All SwiftUI types →