TestsTested | ✗ |
LangLanguage | SwiftSwift |
License | MIT |
ReleasedLast Release | Mar 2017 |
SwiftSwift Version | 3.0 |
SPMSupports SPM | ✗ |
Maintained by [email protected].
To run the example project, clone the repo, and run pod install
from the Example directory first.
WHScrollPageView is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "WHScrollPageView"
let page = WHScrollPageView(frame: CGRect(x: 20, y: 50, width: 335, height: 120), { (imageView, url) in
//内部传出imageView跟url,通过url设置imageView的图片
//imageView.kf.setImage(with: url)
}) { (index) in
print("听单处理\(index)")
}
let array = ["https://raw.githubusercontent.com/onevcat/Kingfisher/master/images/kingfisher-1.jpg", "https://raw.githubusercontent.com/onevcat/Kingfisher/master/images/kingfisher-2.jpg", "https://raw.githubusercontent.com/onevcat/Kingfisher/master/images/kingfisher-3.jpg"]
//一定要设置图片数组
page.imagesURLString = array
view.addSubview(page)
wenhe-liu, [email protected]
WHScrollPageView is available under the MIT license. See the LICENSE file for more info.