0

I have a set of Swift Packages that I'm writing (ex: CUIExpandableButton), that I'd like to roll up into another Swift Package called CrystalUI. The overall goal is to write a set of packages that get bundled into a single package. However, I want to make it so people can just have one import

import CrystalUI

instead of a series of import statements

import CrystalUI
import CUIExpandableButton
import PreviewKit
...

Is it possible to re-expose an existing library as part of the parent library?

robhasacamera
  • 2,967
  • 2
  • 28
  • 41

1 Answers1

0

Looks like @_exported Is what I was looking for. Found this article that explains it. It's an unsupported method but it's also used in Alamofire so I think it's safe.

robhasacamera
  • 2,967
  • 2
  • 28
  • 41