Bundling resources with a Swift package | Apple Developer Documentation
Add resource files to your Swift package and access them in your code.