Contents

query(_:)

Modifies a format style to display a URL’s query component in accordance with the provided option.

Declaration

func query(_ strategy: URL.FormatStyle.ComponentDisplayOption = .never) -> URL.FormatStyle

Parameters

  • strategy:

    A component display option that indicates when, if ever, to display the query component.

Return Value

A modified URL.FormatStyle that incorporates the specified behavior.

See Also

Customizing style behavior