I'm trying to create a custom CLPlacemark using the Intents framework. I'm importing 'Intents' at files beginning.
I found this solution:
let waypointLocation = CLLocation(latitude: 50.00, longitude: 8.00)
let waypointName = "Some Name"
let w1 = CLPlacemark.init(location: waypointLocation,
name: waypointName,
postalAddress: nil)
Unfortunately the above code gives me the following error message:
Ambiguous reference to member 'init(placemark:)'
Any ideas what's wrong?
Documentation:
- init(location:name:postalAddress:) https://developer.apple.com/reference/corelocation/clplacemark/2132103-init