Skip to content

Commit

Permalink
Added SPM instructions to README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
bennie-atlassian committed Apr 7, 2021
1 parent 4dd5902 commit 6de292e
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,17 @@ If using [Carthage](https://github.com/Carthage/Carthage), add the following lin
github "Flipboard/FLAnimatedImage"
```

If using [Swift Package Manager](https://github.com/apple/swift-package-manager), add the following to your `Package.swift` or add via XCode:

```swift
dependencies: [
.package(url: "https://github.com/Flipboard/FLAnimatedImage.git", .upToNextMajor(from: "1.0.16"))
],
targets: [
.target(name: "TestProject", dependencies: ["FLAnimatedImage""])
]
```
In your code, `#import "FLAnimatedImage.h"`, create an image from an animated GIF, and setup the image view to display it:
```objective-c
Expand Down

0 comments on commit 6de292e

Please sign in to comment.