---
title: "setLineJoin(_:)"
framework: coregraphics
role: symbol
role_heading: Instance Method
path: "coregraphics/cgcontext/setlinejoin(_:)"
---

# setLineJoin(_:)

Sets the style for the joins of connected lines in a graphics context.

## Declaration

```swift
func setLineJoin(_ join: CGLineJoin)
```

## Parameters

- `join`: A line join value—doc://com.apple.coregraphics/documentation/CoreGraphics/CGLineJoin/miter (the default), doc://com.apple.coregraphics/documentation/CoreGraphics/CGLineJoin/round, or doc://com.apple.coregraphics/documentation/CoreGraphics/CGLineJoin/bevel. See doc://com.apple.coregraphics/documentation/CoreGraphics/CGPath.

## See Also

### Setting Path Drawing Options

- [setAllowsAntialiasing(_:)](coregraphics/cgcontext/setallowsantialiasing(_:).md)
- [setFlatness(_:)](coregraphics/cgcontext/setflatness(_:).md)
- [setLineCap(_:)](coregraphics/cgcontext/setlinecap(_:).md)
- [setLineDash(phase:lengths:)](coregraphics/cgcontext/setlinedash(phase:lengths:).md)
- [setLineWidth(_:)](coregraphics/cgcontext/setlinewidth(_:).md)
- [setMiterLimit(_:)](coregraphics/cgcontext/setmiterlimit(_:).md)
- [setPatternPhase(_:)](coregraphics/cgcontext/setpatternphase(_:).md)
- [setFillPattern(_:colorComponents:)](coregraphics/cgcontext/setfillpattern(_:colorcomponents:).md)
- [setShouldAntialias(_:)](coregraphics/cgcontext/setshouldantialias(_:).md)
