Git Product home page Git Product logo

jlcustomimagesviewerview's Introduction

JLCustomImagesViewerView

[![CI Status](http://img.shields.io/travis/José Lucas/JLCustomImagesViewerView.svg?style=flat)](https://travis-ci.org/José Lucas/JLCustomImagesViewerView) Version License Platform

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.

jlcustomimagesviewerview's People

Contributors

josechagas avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.