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

# lineCap

The style used to render the endpoints of the stroked portion of the shape node.

```
var lineCap: CGLineCap { get set }
```

## Discussion

The default value is <doc://com.apple.documentation/documentation/CoreGraphics/CGLineCap/butt>. See <doc://com.apple.documentation/documentation/CoreGraphics/CGLineCap>.

---

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)