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

# UITransitionContextViewControllerKey

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

```
struct UITransitionContextViewControllerKey
```

## Topics

### Keys

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

A key that identifies the view controller that’s visible at the beginning of the transition, or at the end of a canceled transition.

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

A key that identifies the view controller that’s visible at the end of a completed transition.

### Initializers

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

Creates a key to identify the view controllers 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)