Latest 0.1.2
Homepage https://github.com/jithinpala/JBImageViewTransition
License MIT
Platforms ios 8.3
Authors

Description

JBImageViewTransition is for ios on Swift. It’s an awesome utility for UIImage transition

Installation

CocoaPods

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

pod 'JBImageViewTransition'

Usage

Using Storyboard / Interface Builder

  • Drag a UIView to Storyboard or Interface Builder, change its class to JBTransitionView
  • Create IBOutlet for JBTransitionView
    @IBOutlet weak var imageTransitionView: JBTransitionView!

    override func viewDidLoad() {
        super.viewDidLoad()
        // Do any additional setup after loading the view, typically from a nib.

        //***** Configure image transition animation *****//
        imageTransitionView.setAnimationImages(NSArray(objects: "image1.jpg","image2.jpg","image3.jpg","image4.jpg"))
        imageTransitionView.animationFromAllSide = true
        imageTransitionView.animationDuration = 3
        imageTransitionView.startJNImageAnimation()
    }

Manually

If you prefer not to use either of the aforementioned dependency managers, you can integrate JBImageViewTransition into your project manually.
Drag the JBTransitionView.swift from source folder.

Attributes you can set

    // This variable is used for animation duration
    var animationDuration           : NSTimeInterval = 2
    // This variable is used for animation direction
    var animationDirection          : AnimationDirection = AnimationDirection.LeftToRight
    // This variable is used for setting animation images
    var animationImageArray         : NSMutableArray = NSMutableArray()
    // This variable is used for animation from all direction and variable type is Bool
    var animationFromAllSide        : Bool = false

Author

Jithin B made this with ❤️.

License

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

Latest podspec

{
    "name": "JBImageViewTransition",
    "summary": "The most fantastic way to implement image transition.",
    "version": "0.1.2",
    "homepage": "https://github.com/jithinpala/JBImageViewTransition",
    "license": "MIT",
    "authors": {
        "Jithin B": "[email protected]"
    },
    "source": {
        "git": "https://github.com/jithinpala/JBImageViewTransition.git",
        "tag": "0.1.2"
    },
    "platforms": {
        "ios": "8.3"
    },
    "source_files": "JBImageViewTransition/Source/JBTransitionView.swift"
}

Pin It on Pinterest

Share This