podcasts()
Creates a media query that matches podcast items and that groups and sorts collections by podcast name.
Declaration
class func podcasts() -> MPMediaQueryReturn Value
A media query that matches media items of type podcast and that has a grouping type of MPMediaGrouping.podcastTitle. This query only returns podcasts downloaded to the user’s library.
Discussion
A media item can have more than one media type; for example, an item could be of types “music” and “podcast.” A podcasts() query matches all podcast items, whether or not they’re also of other media types.