UI button color not restored to original color
I make a quiz app. its button colour change if clicked based on correct or wrong answer. but I want to restore the color to the original one after some delay. but the color is changed but not restore to default one after the delay of 0.2 sec
here is my code
How do I stick an image to the top right of a screen in SwiftUI
image of my problem and code along with it