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

# UICollectionView.ScrollPosition

Constants that indicate how to scroll an item into the visible portion of the collection view.

```
struct ScrollPosition
```

## Topics

### Constants

[`UICollectionViewScrollPositionNone`](/documentation/UIKit/UICollectionViewScrollPosition/UICollectionViewScrollPositionNone)

Don’t scroll the item into view.

[`top`](/documentation/UIKit/UICollectionView/ScrollPosition/top)

Scroll so that the item is positioned at the top of the collection view’s bounds.

[`centeredVertically`](/documentation/UIKit/UICollectionView/ScrollPosition/centeredVertically)

Scroll so that the item is centered vertically in the collection view.

[`bottom`](/documentation/UIKit/UICollectionView/ScrollPosition/bottom)

Scroll so that the item is positioned at the bottom of the collection view’s bounds.

[`left`](/documentation/UIKit/UICollectionView/ScrollPosition/left)

Scroll so that the item is positioned at the left edge of the collection view’s bounds.

[`centeredHorizontally`](/documentation/UIKit/UICollectionView/ScrollPosition/centeredHorizontally)

Scroll so that the item is centered horizontally in the collection view.

[`right`](/documentation/UIKit/UICollectionView/ScrollPosition/right)

Scroll so that the item is positioned at the right edge of the collection view’s bounds.

### Initializers

[`init(rawValue:)`](/documentation/UIKit/UICollectionView/ScrollPosition/init(rawValue:))

Creates a scroll-position structure with the specified raw value.



---

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)