davbeck / ImageIOSwift

Swift wrapper around ImageIO
MIT License
111 stars 15 forks source link

URLImageSourceView (SwiftUI) is fading in when affected by animation #9

Open melgu opened 4 years ago

melgu commented 4 years ago

This shouldn't happen. It doesn't matter if isAnimationEnabled is set to true or false.

Example:

URLImageSourceView(
    imageUrl,
    isAnimationEnabled: false,
    label: Text("title")
)
.animation(Animation.linear(duration: 1).repeatForever(autoreverses: false))
davbeck commented 4 years ago

isAnimationEnabled applies to animated GIF/PNG images, not SwiftUI animation. Why it is fading in, I don't know.