AudioViewController.swift 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. /*****************************************************************************
  2. * AudioViewController.swift
  3. * VLC for iOS
  4. *****************************************************************************
  5. * Copyright (c) 2018 VideoLAN. All rights reserved.
  6. * $Id$
  7. *
  8. * Authors: Carola Nitz <caro # videolan.org>
  9. *
  10. * Refer to the COPYING file of the official project for license.
  11. *****************************************************************************/
  12. class VLCAudioViewController: VLCMediaViewController {
  13. override init(services: Services) {
  14. super.init(services: services)
  15. setupUI()
  16. }
  17. private func setupUI() {
  18. title = NSLocalizedString("AUDIO", comment: "")
  19. tabBarItem = UITabBarItem(
  20. title: NSLocalizedString("AUDIO", comment: ""),
  21. image: UIImage(named: "Audio"),
  22. selectedImage: UIImage(named: "Audio"))
  23. tabBarItem.accessibilityIdentifier = VLCAccessibilityIdentifier.audio
  24. }
  25. override func viewControllers(for pagerTabStripController: PagerTabStripViewController) -> [UIViewController] {
  26. return [
  27. VLCArtistCategoryViewController(services),
  28. VLCAlbumCategoryViewController(services),
  29. VLCTrackCategoryViewController(services),
  30. VLCGenreCategoryViewController(services)
  31. ]
  32. }
  33. }