Contents

path(_:)

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

Declaration

func path(_ strategy: URL.FormatStyle.ComponentDisplayOption = .always) -> URL.FormatStyle

Parameters

  • strategy:

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

Return Value

A modified URL.FormatStyle that incorporates the specified behavior.

See Also

Customizing style behavior