This PR contains the work done to add support to the **Wikipedia** app to show a custom location in the map of the *Places* view coming from a places deep link. To provide further details about the work: - [x] implemented the handling of location coordinates coming from a URL inside the function that generates a `NSUSerActivity` instance out of *places* deep links; - [x] added the `wmf_locationFromURL` property to the `NSUSerActivity` via an extension that returns a `CLLocation` instance with latitude and longitude coordinates if provided; - [x] implemented the "centerMap(onLocation:)" function in the `PlacesViewController` view controller that, essentially, center the map of this view controller to a given location; - [x] improved the handling of a *places* user activity in the `WMFAppViewController` view controller to center the map in case a location has been provided via a deep link; - [x] fixed some duplicated code that was blocking the test from compiling. Co-authored-by: Javier Cicchelli <javier@rock-n-code.com> Reviewed-on: rock-n-code/deep-linking-assignment#2
Deep linking: Wikipedia
Description
Sample app to test a unidirectional link (via deep linking) between the app and the Wikipedia app, targeting the iOS platform only.
auto-layoutcombinecore-datadeep-linkingdependency-injectioniosmakefilemodularisationmvvm-cnetworkingobjective-cswiftswift-pmuikit
Readme
120 MiB
Small improvements release
Latest
Languages
Swift
66.9%
Objective-C
22.6%
HTML
6.8%
JavaScript
1.8%
C
1%
Other
0.8%