<!--
{
  "availability" : [
    "iOS: 5.0.0 -",
    "iPadOS: 5.0.0 -",
    "macCatalyst: 13.1.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIPageViewControllerDelegate/pageViewController(_:spineLocationFor:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(pl)UIPageViewControllerDelegate(im)pageViewController:spineLocationForInterfaceOrientation:"
  },
  "title" : "pageViewController(_:spineLocationFor:)"
}
-->

# pageViewController(_:spineLocationFor:)

Returns the spine location for the given orientation.

```
optional func pageViewController(_ pageViewController: UIPageViewController, spineLocationFor orientation: UIInterfaceOrientation) -> UIPageViewController.SpineLocation
```

## Parameters

`pageViewController`

The page view controller

`orientation`

The new orientation.

## Return Value

The spine location.

## Discussion

Use this method to change the spine location when the device orientation changes, as well as setting new view controllers and changing the double-sided state.

This method is called only if the transition style is [`UIPageViewController.TransitionStyle.pageCurl`](/documentation/UIKit/UIPageViewController/TransitionStyle-swift.enum/pageCurl).

---

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)