---
title: "init(_:)"
framework: webkit
role: symbol
role_heading: Initializer
path: "webkit/urlscheme/init(_:)"
---

# init(_:)

Creates a new URLScheme value from a valid scheme, which WebKit does not already handle.

## Declaration

```swift
@MainActor init?(_ rawValue: String)
```

## Parameters

- `rawValue`: The raw value of the scheme string; if this is an invalid scheme, of if WebKit already handles this scheme, the initializer returns nil.

## Discussion

Discussion To determine whether WebKit handles a specific scheme, call the handlesURLScheme(_:) static method of WebPage.
