Skip to content

AndrewHartAR/GSImageViewerController

 
 

Repository files navigation

GSImageViewerController

Demo

Example

To show normal image viewer controller:

let imageInfo   = GSImageInfo(image: someImage, imageMode: .aspectFit)
let imageViewer = GSImageViewerController(imageInfo: imageInfo)
navigationController?.pushViewController(imageViewer, animated: true)

To show zoom transition image viewer controller:

let imageInfo      = GSImageInfo(image: someImage, imageMode: .aspectFill, imageHD: someHDImageURLOrNil)
let transitionInfo = GSTransitionInfo(fromView: someView)
let imageViewer    = GSImageViewerController(imageInfo: imageInfo, transitionInfo: transitionInfo)
present(imageViewer, animated: true, completion: nil)

Requirements

Master

  • iOS 8.0+
  • Xcode 8.0 (Swift 3.0)
  • iOS 7.0+
  • Xcode 7.3 (Swift 2.2)

Installation

In your Podfile:

source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'
use_frameworks!

pod "GSImageViewerController"

And in your *.swift:

import GSImageViewerController

License

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

About

A image viewer controller with zoom transition, in Swift.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Swift 97.0%
  • Ruby 3.0%