<!--
{
  "availability" : [
    "iOS: 4.2.0 -",
    "iPadOS: 4.2.0 -",
    "macCatalyst: 13.1.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIPrintInfo/orientation-swift.property",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UIPrintInfo(py)orientation"
  },
  "title" : "orientation"
}
-->

# orientation

The orientation of the printed content, portrait or landscape.

```
var orientation: UIPrintInfo.Orientation { get set }
```

## Discussion

An application can set this property to a value thats appropriate to the printable content or it can put up a user interface that enables users to pick the printing orientation. The default value is [`UIPrintInfo.Orientation.portrait`](/documentation/UIKit/UIPrintInfo/Orientation-swift.enum/portrait). See the descriptions of the [`UIPrintInfo.Orientation`](/documentation/UIKit/UIPrintInfo/Orientation-swift.enum) constants for more information.

> Note:
> UIKit ignores this property when printable content is assigned to the `printingItem` or `printingItems` properties of the shared ``doc://com.apple.uikit/documentation/UIKit/UIPrintInteractionController`` object. It determines the orientation based on the type of content.

---

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)