Latest 1.2.0
Homepage https://github.com/WishWei/WXCycleScrollView
License MIT
Platforms ios 10.0, requires ARC
Dependencies SDWebImage
Authors

WXCycleScrollView is a scrollable image banner using Swift

screenshot

Requirements

  • iOS 10.0 or later
  • Swift 3.0

Installation

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

pod 'WXCycleScrollView', '~> 1.2.0'

Usage

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 https://github.com/WishWei/WXCycleScrollView.",
    "homepage": "https://github.com/WishWei/WXCycleScrollView",
    "license": "MIT",
    "authors": {
        "u9b4fu5e0c": "[email protected]"
    },
    "platforms": {
        "ios": "10.0"
    },
    "source": {
        "git": "https://github.com/WishWei/WXCycleScrollView.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