---
title: "setCellSize(_:)"
framework: quartz
role: symbol
role_heading: Instance Method
path: "quartz/ikimagebrowserview/setcellsize(_:)"
---

# setCellSize(_:)

Sets the cell  size.

## Declaration

```swift
func setCellSize(_ size: NSSize)
```

## Parameters

- `size`: The size to set.

## Discussion

Discussion You must use setCellSize or setZoomValue(_:), but not both. Setting the zoom value changes the cell size, and vice versa.

## See Also

### Related Documentation

- [setZoomValue(_:)](quartz/ikimagebrowserview/setzoomvalue(_:).md)

### Setting and Getting Cell Size

- [cellSize()](quartz/ikimagebrowserview/cellsize().md)
