---
title: size
framework: coregraphics
role: symbol
role_heading: Instance Property
path: coregraphics/cglayer/size
---

# size

Returns the width and height of a layer object.

## Declaration

```swift
var size: CGSize { get }
```

## See Also

### Examining a Layer

- [context](coregraphics/cglayer/context.md)
