Contents

allow(_:completionHandler:)

Adds a previously blocked URL to the web content filter’s allow list.

Declaration

func allow(_ url: URL, completionHandler: @escaping  @Sendable (Bool, (any Error)?) -> Void)
func allow(_ url: URL) async throws -> Bool

Parameters

  • url:

    The URL to unblock.

  • completionHandler:

    A closure that the system invokes when the add operation finishes. The closure returns true on success; false, otherwise.