Contents

password(_:)

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

Declaration

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

Parameters

  • strategy:

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

Return Value

A modified URL.FormatStyle that incorporates the specified behavior.

See Also

Customizing style behavior