Javier Cicchelli 6d76ba467c [Feature] Enhance the places deep linking support in the Wikipedia app to support coordinates (#2)
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
2023-04-09 16:27:53 +00:00
2023-04-08 18:37:13 +00:00
2023-04-08 18:37:13 +00:00

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.
Readme 120 MiB
2023-04-13 13:35:17 +00:00
Languages
Swift 66.9%
Objective-C 22.6%
HTML 6.8%
JavaScript 1.8%
C 1%
Other 0.8%