소스 검색

open linkLoginHost = "https://nextcloud.com/install" on Safari

marinofaggiana 4 년 전
부모
커밋
09662d1113
1개의 변경된 파일6개의 추가작업 그리고 0개의 파일을 삭제
  1. 6 0
      iOSClient/Brand/Intro/NCIntroViewController.swift

+ 6 - 0
iOSClient/Brand/Intro/NCIntroViewController.swift

@@ -172,6 +172,11 @@ class NCIntroViewController: UIViewController, UICollectionViewDataSource, UICol
     }
 
     @IBAction func host(_ sender: Any) {
+        
+        guard let url = URL(string: NCBrandOptions.shared.linkLoginHost) else { return }
+        UIApplication.shared.open(url)
+        
+        /*
         let browserWebVC = UIStoryboard(name: "NCBrowserWeb", bundle: nil).instantiateInitialViewController() as? NCBrowserWeb
 
         browserWebVC?.urlBase = NCBrandOptions.shared.linkLoginHost
@@ -179,6 +184,7 @@ class NCIntroViewController: UIViewController, UICollectionViewDataSource, UICol
         if let browserWebVC = browserWebVC {
             appDelegate.window?.rootViewController?.present(browserWebVC, animated: true)
         }
+        */
     }
 }
 extension UINavigationController {