---
title: presentation()
framework: quartzcore
role: symbol
role_heading: Instance Method
path: quartzcore/calayer/presentation()
---

# presentation()

Returns a copy of the presentation layer object that represents the state of the layer as it currently appears onscreen.

## Declaration

```swift
func presentation() -> Self?
```

## Return Value

Return Value A copy of the current presentation layer object.

## Discussion

Discussion The layer object returned by this method provides a close approximation of the layer that is currently being displayed onscreen. While an animation is in progress, you can retrieve this object and use it to get the current values for those animations. The sublayers, mask, and superlayer properties of the returned layer return the corresponding objects from the presentation tree (not the model tree). This pattern also applies to any read-only layer methods. For example, the hitTest(_:) method of the returned object queries the layer objects in the presentation tree.

## See Also

### Accessing related layer objects

- [model()](quartzcore/calayer/model().md)
