Contents

excludes(_:)

Indicates whether options are excluded from filtering.

Declaration

func excludes(_ options: MKAddressFilter.Options) -> Bool

Parameters

  • options:

    The filters to check for exclusion.

Return Value

Returns true if the passed options are excluded from the filtering options; otherwise, false.

Discussion

A filter includes or excludes a set of filter options. Use this method to query the filter instance for one or more options.

let filter = MKAddressFilter(including: [.locality,  .subLocality])
let result = filter.excludes(.postalCode)

The method returns true because filter doesn’t include PostalCode.

See Also

Filtering results