<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -",
    "tvOS: -",
    "visionOS: -",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreGraphics",
  "identifier" : "/documentation/CoreGraphics/CGLineJoin",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "Core Graphics"
    ],
    "preciseIdentifier" : "c:@E@CGLineJoin"
  },
  "title" : "CGLineJoin"
}
-->

# CGLineJoin

Junction types for stroked lines.

```
enum CGLineJoin
```

## Overview

A line join specifies how [`strokePath()`](/documentation/CoreGraphics/CGContext/strokePath()) draws the junction between connected line segments. To set the line join style in a graphics context, you use the function [`setLineJoin(_:)`](/documentation/CoreGraphics/CGContext/setLineJoin(_:)).

## Topics

### Constants

[`CGLineJoin.miter`](/documentation/CoreGraphics/CGLineJoin/miter)

[`CGLineJoin.round`](/documentation/CoreGraphics/CGLineJoin/round)

A join with a rounded end. Core Graphics draws the line to extend beyond the endpoint of the path. The line ends with a semicircular arc with a radius of 1/2 the line’s width, centered on the endpoint.

[`CGLineJoin.bevel`](/documentation/CoreGraphics/CGLineJoin/bevel)

A join with a squared-off end. Core Graphics draws the line to extend beyond the endpoint of the path, for a distance of 1/2 the line’s width.



---

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)