<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "macOS: 26.0.0 -",
    "visionOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "PaperKit",
  "identifier" : "/documentation/PaperKit/PaperMarkup/insertNewLine(configuration:from:to:startMarker:endMarker:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "PaperKit"
    ],
    "preciseIdentifier" : "s:8PaperKit0A6MarkupV13insertNewLine13configuration4from2to11startMarker03endK0yAA18ShapeConfigurationV_So7CGPointVAMS2btF"
  },
  "title" : "insertNewLine(configuration:from:to:startMarker:endMarker:)"
}
-->

# insertNewLine(configuration:from:to:startMarker:endMarker:)

Add a line element on top of the paper.

```
mutating func insertNewLine(configuration: ShapeConfiguration, from start: CGPoint, to end: CGPoint, startMarker lineStartMarker: Bool = false, endMarker lineEndMarker: Bool = false)
```

## Parameters

`configuration`

The configuration of the line to insert.

`start`

The start position of the line.

`end`

The end position of the line.

`lineStartMarker`

True if the start of the line has a marker / arrow.

`lineEndMarker`

True if the end of the line has a marker / arrow.

---

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)