<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "tvOS: -",
    "visionOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UITransitionContextViewKey",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:@T@UITransitionContextViewKey"
  },
  "title" : "UITransitionContextViewKey"
}
-->

# UITransitionContextViewKey

The keys you use to identify the views involved in a transition.

```
struct UITransitionContextViewKey
```

## Topics

### Keys

[`from`](/documentation/UIKit/UITransitionContextViewKey/from)

A key that identifies the view shown at the beginning of the transition, or at the end of a canceled transition.

[`to`](/documentation/UIKit/UITransitionContextViewKey/to)

A key that identifies the view shown at the end of a completed transition.

### Initializers

[`init(rawValue:)`](/documentation/UIKit/UITransitionContextViewKey/init(rawValue:))

Creates a key to identify the views in a transition.



---

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)