-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Explore using SPM modules to allow specific imports of components. #205
Comments
Not sure this carries over to Swift packages but I found the following in this article:
|
@dfeinzimer Thanks for that. Swift-Numerics has modules that you can import. You still have to include the whole Package in your project, but in individual files you can just import the bits you need. This is accomplished by having separate "Targets" in the "Package.swift" file. I'm not sure if this helps any (maybe with app size?); there doesn't seem to be a whole lot of documentation on it. |
Since the toolkit will be added as a source dependency to an app, the compiler should strip out anything that is not needed. So if you were only using the authenticator, then you wouldn't bloat the binary with other components you aren't using. |
I don't know if included frameworks would be stripped. It would be good to verify that. |
No description provided.
The text was updated successfully, but these errors were encountered: