-
import ReadByview
-
declare your array of UIImage like:
let photots =
[UIImage(named: "me")
,UIImage(named: "me1")
,UIImage(named: "me2")
,UIImage(named: "me3")
,UIImage(named: "me4")]
- add UIView in stoaryboard make its type ReadByview or just make it with code like :
let readByViewProgrammatically = ReadByView(frame: CGRect(x: your x posiotin, y: your y, width: your width, height: your height))
self.view.addSubview(readByViewProgrammatically)
readByViewProgrammatically.photots = photots as! [UIImage]
readByViewProgrammatically.numberOfPicturesThatAppear = 4
readByViewProgrammatically.readByLabelText = "your label"
you can take a look Example directory first.
ios 12 or later
swift 5
ReadByView is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'ReadByView'
mokoranyAli, mohammed.korany.ali@gmail.com
ReadByView is available under the MIT license. See the LICENSE file for more info.