Commit b92bed12 authored by Soomin Lee's avatar Soomin Lee

AudioViewController: Simplify viewControllers return

parent ef53f559
......@@ -26,11 +26,12 @@ class VLCAudioViewController: VLCMediaViewController {
}
override func viewControllers(for pagerTabStripController: PagerTabStripViewController) -> [UIViewController] {
let tracks = VLCTrackCategoryViewController(services)
let genres = VLCGenreCategoryViewController(services)
let artists = VLCArtistCategoryViewController(services)
let albums = VLCAlbumCategoryViewController(services)
let playlists = VLCAudioPlaylistCategoryViewController(services)
return [tracks, genres, artists, albums, playlists]
return [
VLCTrackCategoryViewController(services),
VLCGenreCategoryViewController(services),
VLCArtistCategoryViewController(services),
VLCAlbumCategoryViewController(services),
VLCAudioPlaylistCategoryViewController(services)
]
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment