Hi! How can I implement swiftUI animations on a dynamic island icon? I want to do this:
DynamicIsland() {}
compactLeading: {
Image("my-icon").shineEffect()
} compactTrailing: {
Image("my-icon")
}
Where in shine effect I start the animation on onAppear
:
func body(content: Content) -> some View {
content
.onAppear() {
startAnimation()
}
}
In the main app it works, but in the dynamic island it doesn't.