---
title: numberOfColumns
framework: photosui
role: symbol
role_heading: Instance Property
path: photosui/phprojectsectioncontent/numberofcolumns
---

# numberOfColumns

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

## Declaration

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

## Discussion

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.

## See Also

### Determining Content Properties

- [elements](photosui/phprojectsectioncontent/elements.md)
- [aspectRatio](photosui/phprojectsectioncontent/aspectratio.md)
- [cloudAssetIdentifiers](photosui/phprojectsectioncontent/cloudassetidentifiers.md)
- [backgroundColor](photosui/phprojectsectioncontent/backgroundcolor.md)
