polish code
This commit is contained in:
parent
c76f1c24b0
commit
95de38988b
2 changed files with 4 additions and 4 deletions
|
|
@ -7,6 +7,7 @@
|
|||
//
|
||||
|
||||
import UIKit
|
||||
import SafariServices
|
||||
|
||||
class OpenSourceComponentsTableViewController: BasicStaticTableViewController {
|
||||
let openSourceComponents = [
|
||||
|
|
@ -43,7 +44,8 @@ class OpenSourceComponentsTableViewController: BasicStaticTableViewController {
|
|||
|
||||
func actOnDetailDisclosureButton(_ sender: Any?) {
|
||||
if let link = sender as? String {
|
||||
UIApplication.shared.open(URL(string: link)!, options: [:], completionHandler: nil)
|
||||
let svc = SFSafariViewController(url: URL(string: link)!, entersReaderIfAvailable: false)
|
||||
self.present(svc, animated: true, completion: nil)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue