---
title: "init(data:)"
framework: webkit
role: symbol
role_heading: Initializer
path: "webkit/webarchive/init(data:)"
---

# init(data:)

Initializes and returns the receiver, specifying the initial content data.

## Declaration

```swift
init!(data: Data!)
```

## Discussion

Discussion Use the data method to get the receiver’s data.

## See Also

### Initializing

- [init(mainResource:subresources:subframeArchives:)](webkit/webarchive/init(mainresource:subresources:subframearchives:).md)
