UIGraphicsSetPDFContextURLForRect(_:_:)
Links a rectangular area on the current page to the specified URL.
Declaration
func UIGraphicsSetPDFContextURLForRect(_ url: URL, _ rect: CGRect)Parameters
- url:
The URL to open.
- rect:
A rectangle on the current page of the PDF context.
Discussion
You use this function to create external links within a PDF document. If the URL you specify is a type handled by a different application, tapping the rectangle opens that application.
If the current graphics context is not a PDF context, this function does nothing.