Latest 0.0.5
Homepage https://github.com/sjsoad/Image-Previewing
License MIT
Platforms ios 11.0, requires ARC
Dependencies AlamofireImage, SKDataSources
Frameworks UIKit
Authors

Image-Previewing

How to use

  1. Create ImagePreviewItem objects

open class ImagePreviewItem: NSObject {

public var image: UIImage?  
public var placeholderImage: UIImage?  
public var imageURL: URL?  

public init(image: UIImage?) {  
    self.image = image  
}  

public init(imageURL: URL?, placeholderImage: UIImage? = nil) {  
    self.imageURL = imageURL  
    self.placeholderImage = placeholderImage  
}  

}

  1. Set initial item index
  2. Init

let viewController = ImagePreviewingViewController()
let presenter = ImagePreviewingPresenter(with: viewController, previewItems: previewItems, initialItemIndex: initialItemIndex)
viewController.presenter = presenter

  1. Last thing, make navigation for this controller, because currently it douesn’t have any navigation inside.
    You can push it or init navigation controller with root viewcontroller and present it.

You can inherit from all classes from this pod and write anything you need

Latest podspec

{
    "name": "SKImagePreviewing",
    "platforms": {
        "ios": "11.0"
    },
    "swift_version": "4.2",
    "summary": "SKImagePreviewing for displaying set of images",
    "requires_arc": true,
    "version": "0.0.5",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Serhii Kostian": "[email protected]"
    },
    "homepage": "https://github.com/sjsoad/Image-Previewing",
    "source": {
        "git": "https://github.com/sjsoad/Image-Previewing.git",
        "tag": "0.0.5"
    },
    "frameworks": "UIKit",
    "source_files": "ImagePreviewing/**/*.{swift,xib}",
    "resource_bundles": {
        "ImagePreviewing": [
            "ImagePreviewing/**/*.xib"
        ]
    },
    "dependencies": {
        "AlamofireImage": [],
        "SKDataSources": []
    }
}

Pin It on Pinterest

Share This