---
title: CATiledLayer
framework: quartzcore
role: symbol
role_heading: Class
path: quartzcore/catiledlayer
---

# CATiledLayer

A layer that provides a way to asynchronously provide tiles of the layer’s content, potentially cached at multiple levels of detail.

## Declaration

```swift
class CATiledLayer
```

## Overview

Overview As more data is required by the renderer, the layer’s draw(in:) method is called on one or more background threads to supply the drawing operations to fill in one tile of data. The clip bounds and current transformation matrix (CTM) of the drawing context can be used to determine the bounds and resolution of the tile being requested. Regions of the layer may be invalidated using the setNeedsDisplay(_:) method however the update will be asynchronous. While the next display update will most likely not contain the updated content, a future update will. important: Do not attempt to directly modify the contents property of a CATiledLayer object. Doing so disables the ability of a tiled layer to asynchronously provide tiled content, effectively turning the layer into a regular CALayer object.

## Topics

### Visual Fade

- [fadeDuration()](quartzcore/catiledlayer/fadeduration().md)

### Levels of detail

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

### Layer tile size

- [tileSize](quartzcore/catiledlayer/tilesize.md)

## Relationships

### Inherits From

- [CALayer](quartzcore/calayer.md)

### Conforms To

- [CAMediaTiming](quartzcore/camediatiming.md)
- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSCoding](foundation/nscoding.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
- [NSSecureCoding](foundation/nssecurecoding.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Advanced Layer Options

- [CAScrollLayer](quartzcore/cascrolllayer.md)
- [CATransformLayer](quartzcore/catransformlayer.md)
- [CAReplicatorLayer](quartzcore/careplicatorlayer.md)
