35+ Animate Background Color Swift Background. On clicking the button the background color will change to red, then on next click it would change to blue, on next click to red again. I'd like to animate background of uiview with random colours.
We will do this using uialertcontroller extension so the code will be reusable throughout the projects.
Swiftui requires xcode 11 and in the project navigator, click to select contentview.swift. Animations are still one of the few remaining ways to make outstanding application, even when the platform discourages almost all the fancy stuff and recommends that the design should be minimal and clear. Couple this with the motion based animation and you will get an effect similar to the robinhood app. In swiftui the background color can be applied to every view.