<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -",
    "tvOS: -",
    "visionOS: -",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "SpriteKit",
  "identifier" : "/documentation/SpriteKit/SKNode/frame",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "SpriteKit"
    ],
    "preciseIdentifier" : "c:objc(cs)SKNode(py)frame"
  },
  "title" : "frame"
}
-->

# frame

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

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

## Discussion

The frame is the smallest rectangle that contains the node’s content, taking into account the node’s [`xScale`](/documentation/SpriteKit/SKNode/xScale), [`yScale`](/documentation/SpriteKit/SKNode/yScale), and [`zRotation`](/documentation/SpriteKit/SKNode/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()`](/documentation/SpriteKit/SKNode/calculateAccumulatedFrame()).

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)