mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2025-01-11 09:14:06 +01:00
Fix regression that prevented Safari from opening from Activity dialog.
This commit is contained in:
parent
bd29a030e5
commit
4eedd96507
@ -37,7 +37,11 @@ class OpenInSafariActivity: UIActivity {
|
||||
}
|
||||
|
||||
override func perform() {
|
||||
guard let url = activityItems?.first as? URL else { return }
|
||||
guard let url = activityItems?.firstElementPassingTest({ $0 is URL }) as? URL else {
|
||||
activityDidFinish(false)
|
||||
return
|
||||
}
|
||||
|
||||
UIApplication.shared.open(url, options: [:], completionHandler: nil)
|
||||
activityDidFinish(true)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user