<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSCollectionView/ScrollPosition/top",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:@E@NSCollectionViewScrollPosition@NSCollectionViewScrollPositionTop"
  },
  "title" : "top"
}
-->

# top

Scroll so that the top edge of the selected items’ bounding box is adjacent to the top edge of the collection view’s bounds. This option must not be combined with the [`centeredVertically`](/documentation/AppKit/NSCollectionView/ScrollPosition/centeredVertically), [`bottom`](/documentation/AppKit/NSCollectionView/ScrollPosition/bottom), and [`nearestHorizontalEdge`](/documentation/AppKit/NSCollectionView/ScrollPosition/nearestHorizontalEdge) options, but may be combined with other options.

```
static var top: NSCollectionView.ScrollPosition { get }
```

---

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)