The root cause seems to be in the interoperability of Objective-C (which MKMapItem is written in) and Swift, specifically regarding the complex rules for how initializers work. Here are two deep dives into the issue from some years ago:
https://www.codeproject.com/Articles/783584/Subclassing-Objective-C-classes-in-Swift-and-the-p
https://developer.apple.com/forums/thread/7817
My takeaway is that some Objective-C classes implement initializers in a way that doesn’t support what you’re trying to do. ☹️
Topic:
Programming Languages
SubTopic:
Swift
Tags: