PGViewAnimationable 0.1.1

PGViewAnimationable 0.1.1

LangLanguage SwiftSwift
License MIT
ReleasedLast Release May 2017
SwiftSwift Version 3.0
SPMSupports SPM

Maintained by suwan.park.

  • By
  • ipagong


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.)


To run the example project, clone the repo, and run pod install from the Example directory first. 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.


  • above ios 8.0
  • swift 3.0
  • with cocoapods


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

pod "PGViewAnimationable"


ipagong, [email protected]


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