I'm trying to swap out the icon image used in lightning:buttonIcon on-click to one that's in a static resource. However, this is removing the SVG icon when the button is clicked.
Component:
<lightning:buttonIcon aura:id="previewIcon" iconName="utility:preview" class="show-password__icon" onclick="{!c.togglePassword}" alternativeText="Show password" />
Controller:
component.find("previewIcon").set("v.iconName", "{!$Resource.FutureStatePortalV1 + '/assets/style/images/SVG/previde-hide.svg'}");
Is there a different way to reference a static resource in this manner?