---
title: maximumDrawableCount
framework: quartzcore
role: symbol
role_heading: Instance Property
path: quartzcore/cametallayer/maximumdrawablecount
---

# maximumDrawableCount

The number of Metal drawables in the resource pool managed by Core Animation.

## Declaration

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

## Discussion

Discussion You can set this value to 2 or 3 only; if you pass a different value, Core Animation ignores the value and throws an exception. The default value is 3.

## See Also

### Obtaining a Metal Drawable

- [nextDrawable()](quartzcore/cametallayer/nextdrawable().md)
- [allowsNextDrawableTimeout](quartzcore/cametallayer/allowsnextdrawabletimeout.md)
