material-foundation / material-color-utilities

Color libraries for Material You
Apache License 2.0
1.57k stars 134 forks source link

Import Swift Package in iOS #143

Open gotev opened 3 months ago

gotev commented 3 months ago

Hi and thank you for this library!

Wanted to test it out in an actual iOS project, but when I tried to import it the usual SPM way from Xcode, I'm getting this:

Screenshot 2024-03-13 at 12 57 07

and that's because to be able to import the library, SPM needs Package.swift and all the Swift package contents to be in the root of the repository. Being this a monorepo, one possible way to solve this is:

In that way it will be possible to import the SPM package in Xcode and other SPM packages by specifying the git repo and the ios tag.