Fix warning by removing the argument 'entersReaderIfAvailable'

This commit is contained in:
Danny Moesch 2021-01-31 14:02:09 +01:00 committed by Mingshen Sun
parent 07fda1e2e4
commit 4d6c77371d
2 changed files with 2 additions and 2 deletions

View file

@ -105,7 +105,7 @@ class BasicStaticTableViewController: UITableViewController, MFMailComposeViewCo
Utils.alert(title: alertTitle, message: alertMessage, controller: self, completion: nil)
}
case "http", "https":
let svc = SFSafariViewController(url: URL(string: link)!, entersReaderIfAvailable: false)
let svc = SFSafariViewController(url: URL(string: link)!)
present(svc, animated: true, completion: nil)
default:
break

View file

@ -73,7 +73,7 @@ class OpenSourceComponentsTableViewController: BasicStaticTableViewController {
@objc
func actOnDetailDisclosureButton(_ sender: Any?) {
if let link = sender as? String, let url = URL(string: link) {
let svc = SFSafariViewController(url: url, entersReaderIfAvailable: false)
let svc = SFSafariViewController(url: url)
present(svc, animated: true)
}
}