Contents

init(_:)

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

Declaration

@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

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