12345678910111213141516171819202122232425262728293031323334353637 |
- /*****************************************************************************
- * AudioViewController.swift
- * VLC for iOS
- *****************************************************************************
- * Copyright (c) 2018 VideoLAN. All rights reserved.
- * $Id$
- *
- * Authors: Carola Nitz <caro # videolan.org>
- *
- * 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: "Audio"),
- selectedImage: UIImage(named: "Audio"))
- tabBarItem.accessibilityIdentifier = VLCAccessibilityIdentifier.audio
- }
- override func viewControllers(for pagerTabStripController: PagerTabStripViewController) -> [UIViewController] {
- return [
- VLCArtistCategoryViewController(services),
- VLCAlbumCategoryViewController(services),
- VLCTrackCategoryViewController(services),
- VLCGenreCategoryViewController(services)
- ]
- }
- }
|