Code gardening (#24) Code gardening Podspec fix
Code gardening (#24)
Code gardening
Podspec fix
Easy to use library for before & after images. One-line initialization and very customizable API.
This library support
pod 'SlidableImage', '~>3.0'
Common init with image
init(frame: CGRect, views: Views)
Gemeric init with views
init(frame: CGRect, images Images)
updateMask(location maskLocation: CGFloat)
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()
Paweł Bednorz, Quver
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/
©Copyright 2023 CCF 开源发展委员会 Powered by Trustie& IntelliDE 京ICP备13000930号
SlidableImage
Easy to use library for before & after images. One-line initialization and very customizable API.
Requirements
Instalation
This library support
Using
Constructor
Common init with image
Gemeric init with views
Move slider
Variables
Views tuple
Circle view with icon for sliding images. You can override it with your custom view.
Enum that describes which direction the slider will slide from.
Add border
Remove border
TODO
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/