How to link a package locally into my Swift project?

If I have a separate Swift package that I am developing but not ready for publish but I want to try it out in a Swift app can I link that into my project locally or do I always have to push to a git repo and tag with a version to install?

You don't have to push to a git repo. There two ways to link to a package locally

Option 1:

Option 2: