---
title: "init(configuration:)"
framework: webkit
role: symbol
role_heading: Initializer
path: "webkit/wkwebextensioncontroller/init(configuration:)"
---

# init(configuration:)

Returns a web extension controller initialized with the specified configuration.

## Declaration

```swift
init(configuration: WKWebExtensionController.Configuration)
```

## Parameters

- `configuration`: The configuration for the new web extension controller.

## Return Value

Return Value An initialized web extension controller, or nil if the object could not be initialized.

## Discussion

Discussion This is a designated initializer. You can use init() to initialize an instance with the default configuration. The initializer copies the specified configuration, so mutating the configuration after invoking the initializer has no effect on the web extension controller.

## See Also

### Related Documentation

- [init()](webkit/wkwebextensioncontroller/init().md)
