SwiftUI.AnimatedImage
SwiftUI animated image view that works on iOS and layout just as SwiftUI.Image
Installation
Swift Package Manager
dependencies: [
.package(url: "https://github.com/krzyzanowskim/SwiftUI.AnimatedImage", from: "1.0")
],
Usage
import AnimatedImage
struct MyView: View {
var body: some View {
AnimatedImage(data: imageData)
.scaledToFit()
}
}