Latest 0.1.3
Homepage https://github.com/agilie/AGMobileGiftInterface
License MIT
Platforms ios 8.0
Frameworks UIKit, ImageIO, CoreMotion
Authors

CI Status
Version
License
Platform

GifPlaying:

Fox Rabbit

Ladybird

StartGravity:

Everything Boundaries

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. Also our library can capture any interface (screen or view) and throws its UI elements over under the influence of gravity, so that one can move them from side to side obliquely.
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.

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

How does it work?

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")
    }

StartGravity:

After we choose a way to initiate animation, just provide view and duration as parameters call the method startGravityView(view: duration: collisionMode:)


@IBAction startButtonDidTouch(_ sender: Any) {
        self.agGravityService.startGravityView(view: self.view, duration: 10, collisionMode: .everything)
    }

Our examples of animations with AGMobileGiftInterface:

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.

Moreover, we have recently supplemented our library with the new interesting animation. In its updated version, our library captures any interface (screen or view) and throws its UI elements over under the influence of gravity, so that one can move them from side to side obliquely. By default, the animation lasts for about 3-4 seconds, but you can adjust its duration at your discretion. After the animation has been completed, all the UI elements returns to their original location.

(Note: We are working with native UI elements (UILabel, UIButton, UIImageView, UISwitch, UISlider, UITExtField, UIProgressView, UITableView/UICollectionView). If listed UI elements embedded in UIView or UIScrollView, library picks it up and animates it separately. We keep on working to handle most intricate interface.)

This animations can be easily used during the development of any application as an event activated after a specified user action.

Usage

CocoaPods is the recommended way to add AGMobileGiftInterface to your project:

  1. Add a pod entry for AGMobileGiftInterface to your Podfile pod ‘AGMobileGiftInterface’
  2. Install the pod(s) by running pod installation.

Requirements

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”

Installation

AGMobileGiftInterface is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod "AGMobileGiftInterface"

Author

This library is open-sourced by Agilie Team

License

AGMobileGiftInterface is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "AGMobileGiftInterface",
    "version": "0.1.3",
    "platforms": {
        "ios": "8.0"
    },
    "summary": "A short description of AGMobileGiftInterface.",
    "description": "TODO: Add long description of the pod here.",
    "homepage": "https://github.com/agilie/AGMobileGiftInterface",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Agilie": "[email protected]"
    },
    "source": {
        "git": "https://github.com/agilie/AGMobileGiftInterface.git",
        "tag": "0.1.3"
    },
    "source_files": "AGMobileGiftInterface/Classes/**/*.{swift}",
    "frameworks": [
        "UIKit",
        "ImageIO",
        "CoreMotion"
    ],
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This