How do I swatch image instead of color
In your shopify Admin panel, under THEMES & SETTINGS section in the left sidebar menu, click on the "Swatches"
Now you can see "Option Display" section.
In this option fields, you can see the "Image". Just select this.
After selecting all, the output will be...
In the "Swatch Value" field, add the images url.
After adding images url, the output will be looks like this:
Once you done with all the settings. Click "Save" button.