CocoaPods trunk is moving to be read-only. Read more on the blog, there are 14 months to go.

VKStackImageView 0.1.0

VKStackImageView 0.1.0

Maintained by ‘Vamshi’.



  • By
  • Vamshi Krishna

VKStackImageView

This project uses CoreAnimation to mimic StackView from iOS. I have used UIImageView as the Base View for Stack.

Usage is real simple.

  1. Drag and drop VKStackImageView.Swift in your project.

  2. Add a variable like var vkView : VKStackImageView? in your UIViewController.

  3. In your viewDidLoad(), add the following lines:

vkView = VKStackImageView(imageNamesArray: ["dhoni.jpg","yuvi.jpg","shikhar.jpg","kohli.jpg"]) view.addSubview(vkView!)

  1. On buttonTapped function, add vkView?.toggleGallery().

That's it. You are done.

vk