---
title: levelsOfDetail
framework: quartzcore
role: symbol
role_heading: Instance Property
path: quartzcore/catiledlayer/levelsofdetail
---

# levelsOfDetail

The number of levels of detail maintained by this layer.

## Declaration

```swift
var levelsOfDetail: Int { get set }
```

## Discussion

Discussion Defaults to 1. Each level of detail is half the resolution of the previous level. If too many levels are specified for the current size of the layer, then the number of levels is clamped to the maximum value (the bottom most level of detail must contain at least a single pixel in each dimension.)

## See Also

### Levels of detail

- [levelsOfDetailBias](quartzcore/catiledlayer/levelsofdetailbias.md)
