<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "macCatalyst: -",
    "macOS: 26.0.0 -",
    "visionOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "WebKit",
  "identifier" : "/documentation/WebKit/WebView-swift.struct/init(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "WebKit",
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:15_WebKit_SwiftUI0A4ViewVyAC0aB00A4PageCcfc"
  },
  "title" : "init(_:)"
}
-->

# init(_:)

Create a new WebView.

```
@MainActor @preconcurrency init(_ page: WebPage)
```

## Parameters

`page`

The [`WebPage`](/documentation/WebKit/WebPage) that should be associated with this [`WebView`](/documentation/WebKit/WebView-swift.struct). It is a programming error to create multiple [`WebView`](/documentation/WebKit/WebView-swift.struct)s with the same [`WebPage`](/documentation/WebKit/WebPage).

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)