---
title: "draw(in:)"
framework: pdfkit
role: symbol
role_heading: Instance Method
path: "pdfkit/pdfborder/draw(in:)"
---

# draw(in:)

Draws the border.

## Declaration

```swift
func draw(in rect: CGRect)
```

```swift
func draw(in rect: NSRect)
```
