#StackBounty: #magento2 #swatches Create Visual Swatch Attribute

Bounty: 150

Can anyone provide a working example for creating a visual swatch (or even a text swatch) attribute as part of a setup script. I’ve tried the example on Magento 2 create custom swatch attribute programmatically but it doesn’t work for me. The issue I’ve ran into there is that the the attribute repository cannot find the new attribute that was created. I tried putting some cache clearing in between but no luck.

Thanks.


Get this bounty!!!