---
title: "navigateForward(to:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nspagecontroller/navigateforward(to:)"
---

# navigateForward(to:)

Navigates to the specific object.

## Declaration

```swift
func navigateForward(to object: Any)
```

## Parameters

- `object`: The object to display.

## Discussion

Discussion Clears the arrangedObjects array after the selected index, adds the argument to that array, and sets the selectedIndex to the object’s index.

## See Also

### Related Documentation

- [takeSelectedIndexFrom(_:)](appkit/nspagecontroller/takeselectedindexfrom(_:).md)
- [navigateBack(_:)](appkit/nspagecontroller/navigateback(_:).md)
- [navigateForward(_:)](appkit/nspagecontroller/navigateforward(_:).md)

### Page Controller Items

- [arrangedObjects](appkit/nspagecontroller/arrangedobjects.md)
- [selectedIndex](appkit/nspagecontroller/selectedindex.md)
