---
title: "decidePolicy(for:)"
framework: webkit
role: symbol
role_heading: Instance Method
path: "webkit/webpage/navigationdeciding/decidepolicy(for:)"
---

# decidePolicy(for:)

Determines permission to navigate to new content after the response to the navigation request is known.

## Declaration

```swift
@MainActor mutating func decidePolicy(for response: WebPage.NavigationResponse) async -> WKNavigationResponsePolicy
```

## Parameters

- `response`: Descriptive information about the navigation response.

## Return Value

Return Value The navigation policy for the response.
