Latest 0.1.1
Homepage https://github.com/ipagong/PGViewAnimationable
License MIT
Platforms ios 8.0
Authors

CI Status
Version
License
Platform

It simply provide view animations with enum type (left/right/up/down/fade)

You can simple use it through protocol with your custom views.
(but, recommend it with clear backgroundcolor.)

Example

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

appetize.io demo : [ here ]

Make custom view with ViewAnimationable protocol.

class XxxxImageView: UIImageView, ViewAnimationable {

    /* required protocl variable. */
    public var type:ViewAnimationType = .up

    /* use executeAnimation methods when you need. */
    public func startXxxxAnimation() {
        executeAnimation {
            /* do something. between animation. */
            // in this sample, need to change image.
        }
    }
}

Requirements

  • above ios 8.0
  • swift 3.0
  • with cocoapods

Installation

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

pod "PGViewAnimationable"

Author

ipagong, [email protected]

License

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

Latest podspec

{
    "name": "PGViewAnimationable",
    "version": "0.1.1",
    "summary": "View Animation Protocol.",
    "description": "You can make easier Custom Animation View with ViewAnimationable Protocol",
    "homepage": "https://github.com/ipagong/PGViewAnimationable",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "ipagong": "[email protected]"
    },
    "source": {
        "git": "https://github.com/ipagong/PGViewAnimationable.git",
        "tag": "0.1.1"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "PGViewAnimationable/Classes/**/*",
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This