omitWhen(_:matches:)
Returns a display option that displays the host component when a specified component matches against a set of requirement values.
Declaration
static func omitWhen(_ component: URL.FormatStyle.Component, matches requirements: Set<String>) -> URL.FormatStyle.HostDisplayOptionParameters
- component:
A component to compare. This may or may not be the host component itself.
- requirements:
A set of string values to match against. Matching any member of the set informs the format style to omit the component.
Return Value
A display option that omits the host component when a specified component meets the specified requirements.