Latest 0.0.4
License MIT
Platforms ios 8.0, requires ARC
Dependencies Kingfisher

JBImageBrowserViewController is a library enables a user to present images in fullscreen like twitter. Besides the typical pinch and double tap to zoom, we also provide a vertical swipe to dismiss.

Thanks For ImageViewer, Kingfisher and MWPhotoBrowser. I had reference with them.



  • iOS 8.0+
  • Xcode 7.0 or above


create some images

let image_1 = JBImage(url: NSURL(string: ""))
let image_2 = JBImage(filePathURL: NSBundle.mainBundle().URLForResource("IMG_5445", withExtension: "JPG"))
let image_3 = JBImage(image: UIImage(named: "IMG_5429"))
let failedImage = UIImage(named: "error_place_image")

create an instance view controller for parsent images

let imageBrowserVC = JBImageBrowserViewController(imageArray: [image_1,image_2,image_3],failedPlaceholderImage:failedImage)
self.presentViewController(imageBrowserVC, animated: true, completion: nil)



CocoaPods is a dependency manager for Cocoa projects. You can install it with the following command:

$ gem install cocoapods

To integrate JBImageBrowserViewController into your Xcode project using CocoaPods, specify it in your Podfile:

source ''
platform :ios, '8.0'

pod 'JBImageBrowserViewController'

Then, run the following command:

$ pod install

You should open the {Project}.xcworkspace instead of the {Project}.xcodeproj after you installed anything from CocoaPods.

For more information about how to use CocoaPods, I suggest this tutorial.

Latest podspec

    "name": "JBImageBrowserViewController",
    "version": "0.0.4",
    "summary": "A image browser view controller like twitter. written in Swift",
    "description": "A image browser view controller like twitter. written in Swift.",
    "homepage": "",
    "license": "MIT",
    "authors": {
        "JimBo": "[email protected]"
    "platforms": {
        "ios": "8.0"
    "source": {
        "git": "",
        "tag": "0.0.4"
    "source_files": "JBImageBrowserViewController/*.swift",
    "resources": "JBImageBrowserViewController/*.bundle",
    "requires_arc": true,
    "dependencies": {
        "Kingfisher": [
            "~> 3.6.2"
    "pushed_with_swift_version": "3.0"

Pin It on Pinterest

Share This