'Stop toggle white flash
I have a toggle that is configured with two images
Image(configuration.isOn ? ”myToggleUp” : ”myToggleDown”) .resizable() .aspectRatio(contentMode: .fit)
The images are png of a vintage front panel switch.
The problem is when it toggles it flashes between changing image. I have tried to create a ZSta k to keep a blank image behind but I havent succeeded. Is there a way to stop the white background between image toggles?
Mike
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
