You'll probably be interested in the work being done on implementation-only imports, which you can start playing with in Swift 5.1 (albeit behind a "private" attribute, @_implementationOnly
, so it's not 100% ready yet).
1 Like