---
title: interactionState
framework: webkit
role: symbol
role_heading: Instance Property
path: webkit/wkwebview/interactionstate
---

# interactionState

An object you use to capture the current state of interaction in a web view so that you can restore that state later to another web view.

## Declaration

```swift
var interactionState: Any? { get set }
```

## See Also

### Navigating between webpages

- [allowsBackForwardNavigationGestures](webkit/wkwebview/allowsbackforwardnavigationgestures.md)
- [backForwardList](webkit/wkwebview/backforwardlist.md)
- [goBack(_:)](webkit/wkwebview/goback(_:).md)
- [goBack()](webkit/wkwebview/goback().md)
- [goForward(_:)](webkit/wkwebview/goforward(_:).md)
- [goForward()](webkit/wkwebview/goforward().md)
- [go(to:)](webkit/wkwebview/go(to:).md)
- [canGoBack](webkit/wkwebview/cangoback.md)
- [canGoForward](webkit/wkwebview/cangoforward.md)
- [allowsLinkPreview](webkit/wkwebview/allowslinkpreview.md)
