---
title: "init(name:webFrameView:webView:)"
framework: webkit
role: symbol
role_heading: Initializer
path: "webkit/webframe/init(name:webframeview:webview:)"
---

# init(name:webFrameView:webView:)

Initializes the receiver with a frame name, web frame view, and controlling web view.

## Declaration

```swift
init!(name: String!, webFrameView view: WebFrameView!, webView: WebView!)
```

## Parameters

- `name`: The frame name. Typically a custom name or nil (if none is specified). It would be inappropriate to use one of the predefined frame names described in doc://com.apple.webkit/documentation/WebKit/WebFrame/findNamed(_:) as they have special meanings.
- `view`: The view that displays this web frame—the view associated with the receiver.
- `webView`: The parent view that manages the main frame and its children.

## Return Value

Return Value An initialized web frame.

## Discussion

Discussion Normally, you do not invoke this method directly. WebView objects automatically create the main frame and subsequent children when new content is loaded. Send a load(_:) message to the main frame of a WebView to load web content. This method is the designated initializer for the WebFrame class.
