# SwiftPM + canImport

**URL:** <https://forums.swift.org/t/swiftpm-canimport/11749>\
**Category:** Package Manager\
**Created:** [April 7, 2018, 1:32pm UTC](https://forums.swift.org/t/swiftpm-canimport/11749 "2018-04-07T13:32:44Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![xwu](https://avatars.discourse-cdn.com/v4/letter/x/b487fb/32.png) [@xwu](https://forums.swift.org/u/xwu)\
**Post date:** [October 26, 2021, 8:55pm UTC](https://forums.swift.org/t/swiftpm-canimport/11749/10 "2021-10-26T20:55:29Z")

</div>

> [@Alejandro\_Martinez](#):
>
> Basically I wish I could do the same Apple does where you need to import SwiftUI and MapKit to get access to map view, that but with my own (or 3rd party) packages.

Sounds like you want cross-import overlays, which have been pitched but are not a finished, publicly available feature:

> [@Cross-import overlays](https://forums.swift.org/t/cross-import-overlays/36710):
>
> This is a follow-up to [the previous pitch](https://forums.swift.org/t/cross-import-overlays/30868) by @typesanitizer. Cross-import overlays allow Swift to automatically import additional “overlay” modules based on the combination of imports in a particular source file. They allow one library or framework to seamlessly offer tailored APIs for interoperating with another, without imposing additional dependencies or code on clients who don’t need it. This feature has now been implemented and is in master and 5.3 nightly compilers, hidden behind the -…

---

_[View the full topic](https://forums.swift.org/t/swiftpm-canimport/11749)._
