[Feature] Open Wikipedia app #12

Merged
javier merged 6 commits from feature/open-wikipedia-app into main 2023-04-12 23:07:43 +00:00
2 changed files with 11 additions and 0 deletions
Showing only changes of commit 8dd4de175b - Show all commits

View File

@ -61,4 +61,12 @@ extension LocationsListCoordinator: LocationsListCoordination {
)
}
func openWikipediaApp(with url: URL) {
guard UIApplication.shared.canOpenURL(url) else {
return
}
UIApplication.shared.open(url)
}
}

View File

@ -6,10 +6,13 @@
// Copyright © 2023 Röck+Cöde. All rights reserved.
//
import Foundation
protocol LocationsListCoordination: AnyObject {
// MARK: Functions
func openLocationsAddScreen()
func openWikipediaApp(with url: URL)
}