<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: 16.0.0 -",
    "macOS: 13.0.0 -",
    "tvOS: 16.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 9.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/AnyTransition/push(from:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI13AnyTransitionV4push4fromAcA4EdgeO_tFZ"
  },
  "title" : "push(from:)"
}
-->

# push(from:)

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

```
static func push(from edge: Edge) -> AnyTransition
```

## Parameters

`edge`

the edge from which the view will be animated in.

## Return Value

A transition that animates a view by moving and
fading it.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)