<!--
{
  "availability" : [
    "macOS: 10.13.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "PhotoKit",
  "identifier" : "/documentation/PhotosUI/PHProjectSectionContent/numberOfColumns",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "PhotosUI"
    ],
    "preciseIdentifier" : "c:objc(cs)PHProjectSectionContent(py)numberOfColumns"
  },
  "title" : "numberOfColumns"
}
-->

# numberOfColumns

The number of columns if section content is displayed in a grid layout.

```
var numberOfColumns: Int { get }
```

## Discussion

The number of columns informs the suggested layout of the content, in resolution-independent grid space units. One grid space unit is defined as the width of the project canvas divided by `numberOfColumns`.

---

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)