Latest 0.1.2
Homepage https://github.com/JanHalozan/SFFullscreenImageDetailViewController
License MIT
Platforms ios 8.0, requires ARC
Frameworks UIKit, QuartzCore
Authors

An interactive full screen image presentation view controller.

image

Usage

Using SFFullscreenImageDetailViewController couldn’t be simpler. Here’s a two liner for ya:

let viewController = SFFullscreenImageDetailViewController(imageView: yourImageViewToPresent)
viewController.presentInCurrentKeyWindow()

And the good ol’ ObjC:

SFFullscreenImageDetailViewController *viewController = [[SFFullscreenImageDetailViewController alloc] initWithImageView:yourImageViewToPresent];
[viewController presentInCurrentKeyWindow];

Note that you cannot present the view controller in the traditional way using presentViewController(_:animated:completion:)

Installation

Using cocapods:

pod 'SFFullscreenImageDetailViewController'

Carthage

Not yet. But soon.

Source

You can also download and copy the source code into your project. There are no fancy build settings to tweak, just make sure you link against QuartzCore framework.

Contribution

You are more than welcome to drop me a pull request or an issue if you find anything missing and/or would like to see added in the future.

Authors

JanHalozan

Latest podspec

{
    "name": "SFFullscreenImageDetailViewController",
    "version": "0.1.2",
    "summary": "An interactive full screen image presentation view controller.",
    "description": "An UIViewController which presents a given image view in full screen and allows for fully dynamic and interactive behaviour. Both presentation and dismissal are animated and dismissal is fully interactive. User can also zoom the photo.",
    "homepage": "https://github.com/JanHalozan/SFFullscreenImageDetailViewController",
    "screenshots": "https://camo.githubusercontent.com/44534e658201734106fbaf2dd7bbdb93ed018fa1/68747470733a2f2f6d656469612e67697068792e636f6d2f6d656469612f3236746e68514764727a4c734d4f526b412f67697068792e676966",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Jan Halou017ean": "[email protected]"
    },
    "source": {
        "git": "https://github.com/JanHalozan/SFFullscreenImageDetailViewController.git",
        "tag": "0.1.2"
    },
    "social_media_url": "https://twitter.com/JanHalozan",
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "SFFullscreenImageDetailViewController",
    "resource_bundles": {
        "SFFullscreenImageDetailViewController": [
            "SFFullscreenImageDetailViewController/Assets/*.png"
        ]
    },
    "requires_arc": true,
    "frameworks": [
        "UIKit",
        "QuartzCore"
    ],
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This