AudioViewController.swift 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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: "MusicAlbums"),
  22. selectedImage: UIImage(named: "MusicAlbums"))
  23. tabBarItem.accessibilityIdentifier = VLCAccessibilityIdentifier.audio
  24. }
  25. override func viewControllers(for pagerTabStripController: PagerTabStripViewController) -> [UIViewController] {
  26. return [
  27. VLCTrackCategoryViewController(services),
  28. VLCGenreCategoryViewController(services),
  29. VLCArtistCategoryViewController(services),
  30. VLCAlbumCategoryViewController(services),
  31. VLCAudioPlaylistCategoryViewController(services)
  32. ]
  33. }
  34. }