Commit b92bed12 authored by Soomin Lee's avatar Soomin Lee

AudioViewController: Simplify viewControllers return

parent ef53f559
...@@ -26,11 +26,12 @@ class VLCAudioViewController: VLCMediaViewController { ...@@ -26,11 +26,12 @@ class VLCAudioViewController: VLCMediaViewController {
} }
override func viewControllers(for pagerTabStripController: PagerTabStripViewController) -> [UIViewController] { override func viewControllers(for pagerTabStripController: PagerTabStripViewController) -> [UIViewController] {
let tracks = VLCTrackCategoryViewController(services) return [
let genres = VLCGenreCategoryViewController(services) VLCTrackCategoryViewController(services),
let artists = VLCArtistCategoryViewController(services) VLCGenreCategoryViewController(services),
let albums = VLCAlbumCategoryViewController(services) VLCArtistCategoryViewController(services),
let playlists = VLCAudioPlaylistCategoryViewController(services) VLCAlbumCategoryViewController(services),
return [tracks, genres, artists, albums, playlists] 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