scheme(_:)
Modifies a format style to display a URL’s scheme component in accordance with the provided option.
Declaration
func scheme(_ strategy: URL.FormatStyle.ComponentDisplayOption = .always) -> URL.FormatStyleParameters
- strategy:
A component display option that indicates when, if ever, to display the scheme.
Return Value
A modified URL.FormatStyle that incorporates the specified behavior.