Contents

willSubmit(formInfo:)

Allow the application to process form autofill information before a form submission actually takes place.

Declaration

@MainActor mutating func willSubmit(formInfo: WebPage.FormInfo) async

Parameters

  • formInfo:

    The form values that will be submitted for this navigation

Discussion

This is an informative callback only. The form values cannot be changed, nor can the navigation be changed to not submit a form.

The form submission will not actually proceed until after this callback asynchronously resolves.