includes(_:)
Indicates whether options are included for filtering.
Declaration
func includes(_ options: MKAddressFilter.Options) -> BoolParameters
- options:
The filters to check for inclusion.
Return Value
Returns true if the passed options are included in 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.includes(.locality)The method returns true because filter includes Locality.