CCLoginWeb.swift 872 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. //
  2. // CCLoginWeb.swift
  3. // Nextcloud
  4. //
  5. // Created by Marino Faggiana on 07/04/17.
  6. // Copyright © 2017 TWS. All rights reserved.
  7. //
  8. import UIKit
  9. /*
  10. - (void)goToWebVC:(CCMenuItem *)sender
  11. {
  12. if (self.splitViewController.isCollapsed) {
  13. SwiftWebVC *webVC = [[SwiftWebVC alloc] initWithUrlString:sender.argument];
  14. [self.navigationController pushViewController:webVC animated:YES];
  15. } else {
  16. SwiftModalWebVC *webVC = [[SwiftModalWebVC alloc] initWithUrlString:sender.argument];
  17. [self presentViewController:webVC animated:YES completion:nil];
  18. }
  19. }
  20. */
  21. class CCLoginWeb: UIViewController {
  22. override func viewDidLoad() {
  23. super.viewDidLoad()
  24. }
  25. func presentModalWithDefaultTheme(_ vc: UIViewController) {
  26. let webVC = SwiftModalWebVC(urlString: k_loginBaseUrl)
  27. vc.present(webVC, animated: true, completion: nil)
  28. }
  29. }