Latest 1.2.0
License MIT
Platforms ios 10.0, requires ARC
Dependencies SDWebImage

WXCycleScrollView is a scrollable image banner using Swift



  • iOS 10.0 or later
  • Swift 3.0


WXCycleScrollView can be installed using CocoaPods.Add following to your Podfile.

pod 'WXCycleScrollView', '~> 1.2.0'


Instance WXCycleScrollView and set WXCycleScrollViewDelegate,set images by setting property images,set web image by setting imageUrlStrs,and set titles by setting titles.

    cycleScrollView = WXCycleScrollView(frame: CGRect(x: 0, y: 0, width: view.bounds.width, height: 240))
    cycleScrollView?.delegate = self
    cycleScrollView?.imageStrs = imageStrs
    cycleScrollView?.titles = titles

Implement func in WXCycleScrollViewDelegate to deal with the click event on image.

    func cycleScrollView(_ cycleScrollView: WXCycleScrollView, didSelectAt index: Int) {
        //your code

Latest podspec

    "name": "WXCycleScrollView",
    "version": "1.2.0",
    "summary": "a scrollable image banner using Swift.",
    "description": "WXCycleScrollView is a scrollable image banner using Swift.first version uploaded.more detail in",
    "homepage": "",
    "license": "MIT",
    "authors": {
        "u9b4fu5e0c": "[email protected]"
    "platforms": {
        "ios": "10.0"
    "source": {
        "git": "",
        "tag": "1.2.0"
    "source_files": "WXCycleScrollViewDemo/WXCycleScrollViewDemo/WXCycleScrollView/*",
    "requires_arc": true,
    "dependencies": {
        "SDWebImage": [
            "~> 4.0.0-beta2"
    "pushed_with_swift_version": "3.0"

Pin It on Pinterest

Share This