Skip to content

SwiftUI AnimatedImage View

License

Notifications You must be signed in to change notification settings

krzyzanowskim/SwiftUI.AnimatedImage

Repository files navigation

SwiftUI.AnimatedImage

SwiftUI animated image view that works on iOS and layout just as SwiftUI.Image

Screen.Recording.2021-07-31.at.02.18.33.mov

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()

    }
    
}