Image Gallery for Svelte
Here's a basic example on how to create a simple image gallery with Svelte. (edit Stackblitz).
If you want to provide images data directly to PhotoSwipe, refer to Data sources page.
There is also an unofficial Svelte gallery component by @mvolfik that could be very useful.