JLCustomImagesViewerView 1.0.0

JLCustomImagesViewerView 1.0.0

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Jun 2016
SPMSupports SPM

Maintained by Jose Lucas.



  • By
  • José Lucas

JLCustomImagesViewerView

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

Installation

JLCustomImagesViewerView is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "JLCustomImagesViewerView"
``

## Using this Library
##### *First Step*

Import it on every file that you will use this framework.

```swift
import JLCustomImagesViewerView
``
##### *Second Step*

    Create an instance of JLCustomImagesViewerView

```swift
//This is an effect you apply to the view , you are free to choose anyone
let blurEffect = UIBlurEffect(style: UIBlurEffectStyle.Dark)

let viewer = JLCustomImagesViewerView(effect: blurEffect)
``

##### *Optional Step*

    Call this method for you add a page control on the view

- parameter aligment: the position aligment of the pageControl
- parameter tintColor: tint color of the pageControl
- parameter currentPageColor: current page color indicator of the pageControl

```swift
public func addPageControl(aligment:ComponentAligment,tintColor:UIColor,currentPageColor:UIColor)
``

##### *Third Step*
    Call this method to show the JLCustomImagesViewerView with the images you want

- parameter images: Array of images that you want to see
- parameter view: The view where you want to show it
- parameter showViewCompletion: A block that will be executed after present the JLCustomImagesViewerView
- parameter hideViewCompletion: A block that will be executed after remove the JLCustomImagesViewerView

```swift
public func showViewerForImages(images:[UIImage],OnView view:UIView,showViewCompletion:(()->())?,hideViewCompletion:(()->())?)
``



#### *That's it, now you are ready to use it*


## Author

José Lucas, chagasjoselucas@gmail.com

## License

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