ExSlideMenuController.swift 899 B

1234567891011121314151617181920212223242526272829303132
  1. //
  2. // ExSlideMenuController.swift
  3. // Gasteizko Margolariak
  4. //
  5. // Created by Inigo Valentin on 2016-08-23
  6. // Copyright © 2016 Inigo Valentin. All rights reserved.
  7. //
  8. // Based on the work of Yuji Hato.
  9. //
  10. import UIKit
  11. class ExSlideMenuController : SlideMenuController {
  12. override func isTagetViewController() -> Bool {
  13. if let vc = UIApplication.topViewController() {
  14. if vc is MainViewController ||
  15. vc is HomeViewController ||
  16. vc is LocationViewController ||
  17. vc is LablancaViewController ||
  18. vc is ScheduleViewController ||
  19. vc is GmscheduleViewController ||
  20. vc is ActivitiesViewController ||
  21. vc is BlogViewController ||
  22. vc is GalleryViewController ||
  23. vc is SettingsViewController {
  24. return true
  25. }
  26. }
  27. return false
  28. }
  29. }