Open
Description
Steps to Reproduce:
Create a Bool State variable, with an initial value of false
Add an AnimatedImage to a View with the isAnimating property set to the State Bool which is false
Build the Application
Expected Result:
The animation is frozen
Actual Result:
The animation is running
OS Version:
13.4.1
Device:
iPhone SE (2nd generation) Simulator
Example Code:
struct ContentView: View {
@State var isAnimating : Bool = false
var body: some View {
VStack{
AnimatedImage(name: "elephant.png", isAnimating: $isAnimating)
.scaledToFit()
Toggle(isOn: $isAnimating){
Text("Animating")
.bold()
}
}.padding(50)
}
}