iOS reference / SwiftUICore / AnyTransitionSwiftUICore · IOS API REFERENCE
AnyTransition struct · iOS 13.0+ · SDK 27.1
@frozen struct AnyTransitionA type-erased transition.
- See Also: `Transition`
Members (12) static · iOS 13.0+ asymmetric TypeScript static asymmetric(insertion: AnyTransition, removal: AnyTransition): AnyTransitionSwift declaration static func asymmetric(insertion: AnyTransition, removal: AnyTransition) -> AnyTransitionProvides a composite transition that uses a different transition for
insertion versus removal.
static · iOS 13.0+ move TypeScript static move(edge: Edge): AnyTransitionSwift declaration static func move(edge: Edge) -> AnyTransitionReturns a transition that moves the view away, towards the specified
edge of the view.
static · iOS 16.0+ push TypeScript static push(edge: Edge): AnyTransitionSwift declaration static func push(from edge: Edge) -> AnyTransitionCreates a transition that when added to a view will animate the
view's insertion by moving it in from the specified edge while
fading it in, and animate its removal by moving it out towards
the opposite edge and fading it out.
- Parameters:
- edge: the edge from which the view will be animated in.
- Returns: A transition that animates a view by moving and
fading it.
get · iOS 13.0+ scale TypeScript static get scale(): AnyTransitionSwift declaration static var scale: AnyTransition { get }Returns a transition that scales the view.
static · iOS 13.0+ scale TypeScript static scaleScaleAnchor(scale: number, anchor?: UnitPoint): AnyTransitionSwift declaration static func scale(scale: CGFloat, anchor: UnitPoint = .center) -> AnyTransitionReturns a transition that scales the view by the specified amount.
get · iOS 13.0+ slide TypeScript static get slide(): AnyTransitionSwift declaration static var slide: AnyTransition { get }A transition that inserts by moving in from the leading edge, and
removes by moving out towards the trailing edge.
- SeeAlso: `AnyTransition.move(edge:)`
static · iOS 13.0+ offset TypeScript static offsetXY(x?: number, y?: number): AnyTransitionSwift declaration static func offset(x: CGFloat = 0, y: CGFloat = 0) -> AnyTransitionstatic · iOS 13.0+ offset TypeScript static offset(offset: { width: number; height: number }): AnyTransitionSwift declaration static func offset(_ offset: CGSize) -> AnyTransitionget · iOS 13.0+ opacity TypeScript static get opacity(): AnyTransitionSwift declaration nonisolated(unsafe) static let opacity: AnyTransitionA transition from transparent to opaque on insertion, and from opaque to
transparent on removal.
method · iOS 13.0+ combined TypeScript combined(other: AnyTransition): AnyTransitionSwift declaration func combined(with other: AnyTransition) -> AnyTransitionCombines this transition with another, returning a new transition that
is the result of both transitions being applied.
get · iOS 13.0+ identity TypeScript static get identity(): AnyTransitionSwift declaration static var identity: AnyTransition { get }A transition that returns the input view, unmodified, as the output
view.
method · iOS 13.0+ animation TypeScript animation(animation?: (Animation) | null): AnyTransitionSwift declaration func animation(_ animation: Animation?) -> AnyTransitionAttaches an animation to this transition.
Skipped declarations 2 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.
AnyTransition.modifier(active:identity:)
This declaration needs Swift generic type arguments. (no canonical witness for E)
AnyTransition.init(_:)
This declaration needs Swift generic type arguments. (no canonical witness for T)
All SwiftUICore types →