<!--
{
  "availability" : [
    "iOS: 18.0.0 -",
    "iPadOS: 18.0.0 -",
    "macCatalyst: 18.0.0 -",
    "tvOS: 18.0.0 -",
    "visionOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIViewController/preferredTransition",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UIViewController(py)preferredTransition"
  },
  "title" : "preferredTransition"
}
-->

# preferredTransition

An object that defines the transition animation when switching to the view controller.

```
var preferredTransition: UIViewController.Transition? { get set }
```

## Discussion

Use this property to define which transition the system uses when you present a view controller. For more information, see [Enhancing your app with fluid transitions](/documentation/UIKit/enhancing-your-app-with-fluid-transitions).

---

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)