---
title: "pdfViewWillClick(onLink:with:)"
framework: pdfkit
role: symbol
role_heading: Instance Method
path: "pdfkit/pdfviewdelegate/pdfviewwillclick(onlink:with:)"
---

# pdfViewWillClick(onLink:with:)

Handle clicks on URL links in a view.

## Declaration

```swift
optional func pdfViewWillClick(onLink sender: PDFView, with url: URL)
```
