omitWhen(_:matches:)
Returns a display option that omits the component when a specified component meets the specified requirements.
Declaration
static func omitWhen(_ component: URL.FormatStyle.Component, matches requirements: Set<String>) -> URL.FormatStyle.ComponentDisplayOptionParameters
- component:
A component to compare. This may or may not be the component the strategy modifies. For example, a display option for the password might match against known values for the user.
- 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 component when a specified component meets the specified requirements.