Swiftpack.co - Package - quver/SlidableImage

SlidableImage

iOS CI codecov codebeat badge GitHub license Platform Version Swift Package Manager compatible Readme Score Documentation

Easy to use library for before & after images. One-line initialization and very customizable API.

Requirements

  • iOS 9
  • Swift 5

Instalation

This library support

  • Cocoapods
  • Swift Package Manager
pod 'SlidableImage', '~>3.0'

Using

Constructor

Common init with image

init(frame: CGRect, views: Views)

Gemeric init with views

init(frame: CGRect, images Images)

Move slider

updateMask(location maskLocation: CGFloat)

Variables

Views tuple

var views: Views

Circle view with icon for sliding images. You can override it with your custom view.

var sliderCircle: UIView

Enum that describes which direction the slider will slide from.

var slideDirection: SlideDirection

// Possible values
.left, .right, .top, .bottom

Add border

addBorder(width: CGFloat, color: UIColor)

Remove border

removeBorder()

TODO

  • Test with storyboards

Author

PaweĊ‚ Bednorz, Quver

License

SlidableImage Lib and Slider graphic are available under the MIT license. Check the LICENSE file for more information.

Images from http://www.comicsbeat.com/awesome-infographic-on-the-avengers-then-and-now/

Github

link
Stars: 25

Dependencies

Used By

Total: 0

Releases

3.0.4 -

Xcode 10.2 & Swift 5.0

3.0.3 -

Bug fix for Swift 4.2

3.0.2 -

3.0.1 -

Full Changelog

Fixed bugs:

3.0.0 -

2.0.0 -

Implemented enhancements:

  • Adding the ability to pass in an image for the circle slider view. #4 (campierce88)

Merged pull requests:

  • [QT-6] Refactor #6 (quver)
  • [QT-1] Change slider from image to code #5 (quver)

Full Changelog

1.1.0 -

Full Changelog

1.0.2 -

Documentation update

1.0.1 -

CocoaPods page issue fix

1.0.0 -

First release