---
title: frame
framework: spritekit
role: symbol
role_heading: Instance Property
path: spritekit/sknode/frame
---

# frame

A rectangle in the parent’s coordinate system that contains the node’s content, ignoring the node’s children.

## Declaration

```swift
var frame: CGRect { get }
```

## Mentioned in

Getting Started with Nodes Getting Started with Sprite Nodes Positioning a Scene’s Origin Within its View Resizing a Sprite in Nine Parts

## Discussion

Discussion The frame is the smallest rectangle that contains the node’s content, taking into account the node’s xScale, yScale, and zRotation properties. Since SKNode does not draw content of its own, its frame size is arbitrary; it’s the visual subclasses of SKNode that do draw that define the frame’s size with a meaningful value that encloses its visual content. To get a rect that encloses all the child nodes of an SKNode parent object, use calculateAccumulatedFrame().

## See Also

### Querying the Content Size

- [calculateAccumulatedFrame()](spritekit/sknode/calculateaccumulatedframe().md)
