Latest 1.0.0
Homepage https://github.com/suzuhiroruri/LightImageController
License MIT
Platforms ios 9.3
Authors

Simple drop-n-go solution for previewing image or video.

Platform: iOS 10+Language: Swift 4

“demo”

Requirements

  • iOS 10.0+
  • Swift 4.0+

Demo

Build and run the LightControllerDemo project in Xcode.

Installation

Drag LightPreviewController.swift into your project. That’s it.

Example Usage

Preview image:

let samplePhoto = UIImage(named: "sample-photo")!
let previewController = TYCImagePreviewController(image: samplePhoto)
previewController.show(animated: true)

Preview video:

let sampleVideo = Bundle.main.url(forResource: "sample-video", withExtension: "mp4")!
let previewController = TYCImagePreviewController(videoURL: sampleVideo)
previewController.show(animated: true)

Discussion

Open an issue or submit a pull request.

Contact

Hiromasa Suzuki

License

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

Latest podspec

{
    "name": "LightImageController",
    "version": "1.0.0",
    "summary": "Simple image and video previewer",
    "homepage": "https://github.com/suzuhiroruri/LightImageController",
    "license": "MIT",
    "authors": {
        "suzuhiroruri": "[email protected]"
    },
    "platforms": {
        "ios": "9.3"
    },
    "source": {
        "git": "https://github.com/suzuhiroruri/LightImageController.git",
        "tag": "1.0.0"
    },
    "source_files": [
        "Classes",
        "LightImageController/Classes/*.swift"
    ]
}

Pin It on Pinterest

Share This