setCookiePolicy(_:completionHandler:)
Sets a cookie policy that indicates whether the cookie store allows cookie storage.
Declaration
func setCookiePolicy(_ policy: WKHTTPCookieStore.CookiePolicy, completionHandler: (@MainActor @Sendable () -> Void)? = nil)func setCookiePolicy(_ policy: WKHTTPCookieStore.CookiePolicy) asyncParameters
- policy:
A cookie policy that indicates whether the cookie store allows cookie storage.
- completionHandler:
A block the system invokes after it sets the cookie policy.