Agilie Team would like to offer you our new lightweight open-source library called AGMobileGiftInterface. This library simplifies interaction with GIF images and can be easily integrated into your project.
When can you use AGMobileGiftInterface? Use our library if you need to show a GIF image after performing a certain pre-specified action. AGMobileGiftInterface can also be helpful for creating animated greetings, designing splash screens or loading, upgrading and supplementing online games as well as in other similar cases. Our library helps you achieve the desired result in an easy way with as little lines of code as possible.
To run the example project, clone the repo, and run pod install
from the Example directory first.
GifPlaying:
After an animated picture has been played, the controller managing it closes. And if you want to add a new image, just put it into the project and provide the GIF path as parameter and call method show.
@IBAction func showFox(_ sender: Any) {
AGMobileGiftInterface.show(gifName : "fox")
}
@IBAction func showRabbit(_ sender: Any) {
AGMobileGiftInterface.show(gifName : "rabbit")
}
We’ve used this library when working on Easter greeting program. Quite simple, it has 3 GIF images in its reserve (Ladybird, Rabbit, Fox) but can also be supplemented with new ones. We made example to congratulate the use on the day of Easter. This animations can be easily used during the development of any application as an event activated after a specified user action.
CocoaPods is the recommended way to add AGMobileGiftInterface to your project:
AGMobileGiftInterface works on iOS 8.0+ and is compatible with ARC projects. It depends on the following Apple frameworks, which should already be included with most Xcode templates: You will need LLVM 3.0 or later in order to build “AGMobileGiftInterface”
AGMobileGiftInterface is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "AGMobileGiftInterface"
This library is open-sourced by Agilie Team
AGMobileGiftInterface is available under the MIT license. See the LICENSE file for more info.