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