---
title: "webView(_:shouldStartLoadWith:navigationType:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/uiwebviewdelegate/webview(_:shouldstartloadwith:navigationtype:)"
---

# webView(_:shouldStartLoadWith:navigationType:)

Sent before a web view begins loading a frame.

## Declaration

```swift
optional func webView(_ webView: UIWebView, shouldStartLoadWith request: URLRequest, navigationType: UIWebView.NavigationType) -> Bool
```

## Parameters

- `webView`: The web view that is about to load a new frame.
- `request`: The content location.
- `navigationType`: The type of user action that started the load request.

## Return Value

Return Value true if the web view should begin loading content; otherwise, false .

## See Also

### Loading Content

- [webViewDidStartLoad(_:)](uikit/uiwebviewdelegate/webviewdidstartload(_:).md)
- [webViewDidFinishLoad(_:)](uikit/uiwebviewdelegate/webviewdidfinishload(_:).md)
- [webView(_:didFailLoadWithError:)](uikit/uiwebviewdelegate/webview(_:didfailloadwitherror:).md)
