<!--
{
  "documentType" : "article",
  "framework" : "PDFKit",
  "identifier" : "/documentation/PDFKit/navigation",
  "metadataVersion" : "0.1.0",
  "role" : "collectionGroup",
  "title" : "Navigation"
}
-->

# Navigation

Operations for moving through page history and seeking to a page in a document.

## Topics

### Determining Valid History Operations

[`var canGoBack: Bool`](/documentation/PDFKit/PDFView/canGoBack)

Returns a Boolean value indicating whether the user can navigate to the previous page in the page history.

[`var canGoForward: Bool`](/documentation/PDFKit/PDFView/canGoForward)

Returns a Boolean value indicating whether the user can navigate to the next page in the page history.

[`var canGoToFirstPage: Bool`](/documentation/PDFKit/PDFView/canGoToFirstPage)

Returns a Boolean value indicating whether the user can navigate to the first page of the document.

[`var canGoToLastPage: Bool`](/documentation/PDFKit/PDFView/canGoToLastPage)

Returns a Boolean value indicating whether the user can navigate to the last page of the document.

[`var canGoToNextPage: Bool`](/documentation/PDFKit/PDFView/canGoToNextPage)

Returns a Boolean value indicating whether the user can navigate to the next page of the document.

[`var canGoToPreviousPage: Bool`](/documentation/PDFKit/PDFView/canGoToPreviousPage)

Returns a Boolean value indicating whether the user can navigate to the previous page of the document.

### Navigating History for a Document

[`func goBack(Any?)`](/documentation/PDFKit/PDFView/goBack(_:))

Navigates back one step in the page history.

[`func goForward(Any?)`](/documentation/PDFKit/PDFView/goForward(_:))

Navigates forward one step in the page history.

[`func goToFirstPage(Any?)`](/documentation/PDFKit/PDFView/goToFirstPage(_:))

Navigates to the first page of the document.

[`func goToLastPage(Any?)`](/documentation/PDFKit/PDFView/goToLastPage(_:))

Navigates to the last page of the document.

[`func goToNextPage(Any?)`](/documentation/PDFKit/PDFView/goToNextPage(_:))

Navigates to the next page of the document.

[`func goToPreviousPage(Any?)`](/documentation/PDFKit/PDFView/goToPreviousPage(_:))

Navigates to the previous page of the document.

### Using Seek in a Document

[`func go(to: PDFPage)`](/documentation/PDFKit/PDFView/go(to:)-6x8y2)

Scrolls to the specified page.

[`func go(to: PDFDestination)`](/documentation/PDFKit/PDFView/go(to:)-5lh5d)

Navigates to the specified destination.

[`func go(to: PDFSelection)`](/documentation/PDFKit/PDFView/go(to:)-3t5go)

Scrolls to the first character of the specified selection.

[`func go(to: CGRect, on: PDFPage)`](/documentation/PDFKit/PDFView/go(to:on:))

Navigates to the specified rectangle on the specified page.



---

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)