---
title: "addDestination(_:at:)"
framework: coregraphics
role: symbol
role_heading: Instance Method
path: "coregraphics/cgcontext/adddestination(_:at:)"
---

# addDestination(_:at:)

Sets a destination to jump to when a point in the current page of a PDF graphics context is clicked.

## Declaration

```swift
func addDestination(_ name: CFString, at point: CGPoint)
```

## Parameters

- `name`: A destination name.
- `point`: A location in the current page of the PDF graphics context.

## See Also

### Managing a PDF Graphics Context

- [beginPDFPage(_:)](coregraphics/cgcontext/beginpdfpage(_:).md)
- [endPDFPage()](coregraphics/cgcontext/endpdfpage().md)
- [setDestination(_:for:)](coregraphics/cgcontext/setdestination(_:for:).md)
- [setURL(_:for:)](coregraphics/cgcontext/seturl(_:for:).md)
- [addDocumentMetadata(_:)](coregraphics/cgcontext/adddocumentmetadata(_:).md)
- [closePDF()](coregraphics/cgcontext/closepdf().md)
