WHScrollPageView 0.1.1

WHScrollPageView 0.1.1

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Mar 2017
SwiftSwift Version 3.0
SPMSupports SPM

Maintained by [email protected].



  • By
  • wenhe-liu

WHScrollPageView

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

Installation

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)

Author

wenhe-liu, [email protected]

License

WHScrollPageView is available under the MIT license. See the LICENSE file for more info.