Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/krzyzanowskim/swiftui.animatedimage
SwiftUI AnimatedImage View
https://github.com/krzyzanowskim/swiftui.animatedimage
animation gif-animation swiftui
Last synced: about 2 months ago
JSON representation
SwiftUI AnimatedImage View
- Host: GitHub
- URL: https://github.com/krzyzanowskim/swiftui.animatedimage
- Owner: krzyzanowskim
- License: mit
- Created: 2021-07-31T00:21:43.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-07-31T00:54:16.000Z (over 3 years ago)
- Last Synced: 2024-04-14T07:11:18.948Z (8 months ago)
- Topics: animation, gif-animation, swiftui
- Language: Swift
- Homepage:
- Size: 424 KB
- Stars: 56
- Watchers: 4
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# SwiftUI.AnimatedImage
SwiftUI animated image view that works on iOS and layout just as SwiftUI.Image
https://user-images.githubusercontent.com/758033/127722908-4d760937-2420-4d78-a9d7-38c5bc6dffe0.mov
## Installation
### Swift Package Manager
```
dependencies: [
.package(url: "https://github.com/krzyzanowskim/SwiftUI.AnimatedImage", from: "1.0")
],
```## Usage
```swift
import AnimatedImagestruct MyView: View {
var body: some View {
AnimatedImage(data: imageData)
.scaledToFit()}
}```