/***************************************************************************** * AudioViewController.swift * VLC for iOS ***************************************************************************** * Copyright (c) 2018 VideoLAN. All rights reserved. * $Id$ * * Authors: Carola Nitz * * Refer to the COPYING file of the official project for license. *****************************************************************************/ class VLCAudioViewController: VLCMediaViewController { override init(services: Services) { super.init(services: services) setupUI() } private func setupUI() { title = NSLocalizedString("AUDIO", comment: "") tabBarItem = UITabBarItem( title: NSLocalizedString("AUDIO", comment: ""), image: UIImage(named: "MusicAlbums"), selectedImage: UIImage(named: "MusicAlbums")) tabBarItem.accessibilityIdentifier = VLCAccessibilityIdentifier.audio } override func viewControllers(for pagerTabStripController: PagerTabStripViewController) -> [UIViewController] { let tracks = VLCMediaCategoryViewController(services: services, subcategory: VLCMediaSubcategories.tracks) tracks.delegate = super.self() let genres = VLCMediaCategoryViewController(services: services, subcategory: VLCMediaSubcategories.genres) genres.delegate = super.self() let artists = VLCMediaCategoryViewController(services: services, subcategory: VLCMediaSubcategories.artists) artists.delegate = super.self() let albums = VLCMediaCategoryViewController(services: services, subcategory: VLCMediaSubcategories.albums) albums.delegate = super.self() let playlists = VLCMediaCategoryViewController(services: services, subcategory: VLCMediaSubcategories.audioPlaylists) playlists.delegate = super.self() return [tracks, genres, artists, albums, playlists] } }