filterItems(matching:contains:)

Filters items by a given relationship that matches a specific value.

Declaration

mutating func filterItems<RelatedMusicItemType>(matching keyPath: KeyPath<MusicItemType.LibraryFilter, MusicItemCollection<RelatedMusicItemType>?>, contains relatedItem: RelatedMusicItemType) where RelatedMusicItemType : MusicItem