PlaylistViewController.swift 1.2 KB

12345678910111213141516171819202122232425262728293031323334
  1. /*****************************************************************************
  2. * VLCPlaylistViewController.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 VLCPlaylistViewController: VLCMediaViewController {
  13. override init(services: Services) {
  14. super.init(services: services)
  15. setupUI()
  16. }
  17. private func setupUI() {
  18. title = NSLocalizedString("PLAYLISTS", comment: "")
  19. tabBarItem = UITabBarItem(
  20. title: NSLocalizedString("PLAYLISTS", comment: ""),
  21. image: UIImage(named: "Playlist"),
  22. selectedImage: UIImage(named: "Playlist"))
  23. tabBarItem.accessibilityIdentifier = VLCAccessibilityIdentifier.playlist
  24. }
  25. override func viewControllers(for pagerTabStripController: PagerTabStripViewController) -> [UIViewController] {
  26. return [
  27. PlaylistCategoryViewController(services)
  28. ]
  29. }
  30. }