JLCustomImagesViewerView 1.0.0

JLCustomImagesViewerView 1.0.0

测试已测试
语言语言 SwiftSwift
许可证 MIT
发布上次发布2016年6月
SPM支持 SPM

Jose Lucas 维护。



  • 作者:
  • José Lucas

JLCustomImagesViewerView

示例

要运行示例项目,请克隆仓库,然后首先在 Example 目录下运行 pod install 命令。

要求

安装

JLCustomImagesViewerView 可通过 CocoaPods 获取。要安装它,只需将以下行添加到您的 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.