Latest1.0.1
Homepagehttps://github.com/YinSiQian/SQAutoScrollView
LicenseMIT
Platformsios 8.0, requires ARC
DependenciesKingfisher
FrameworksUIKit
Authors

An auto scroll banner framework that is simple and easy to use

image

install

pod ‘SQAutoScrollView’, ‘~>1.0.1’

usage

let urls = ["image url", "image url"]

let cycleView = SQAutoScrollView(frame: CGRect.init(x: 0, y: 100, width: view.bounds.size.width, height: 300), urls: urls, didItemCallBack: { (view, index) in
            print("view--->(view), index-->(index)")
        })

view.addSubview(cycleView)

customize

let cycleView = SQAutoScrollView(frame: CGRect.init(x: 0, y: 100, width: view.bounds.size.width, height: 300), urls: urls, didItemCallBack: { (view, index) in
            print("view--->(view), index-->(index)")
        })
//auto scroll interval
cycleView.interval = 1
//currentPage default is 0, it must be set after property imageUrls, otherwise no works.
cycleView.currentPage = 1   
cycleView.pageControl?.alignment = .right
cycleView.pageControl?.style = .rectangle
cycleView.pageControl?.currentPageIndicatorTintColor = UIColor.blue
cycleView.pageControl?.pageIndicatorTintColor = UIColor.red
view.addSubview(cycleView)

requirements

Xcode 9

iOS 8.0+

Swift 4.0

Dependency Kingfisher 4.0.1

hope

if you found some bug when used, hope you can issue me. Thanks.

if you hope have new function, hope you can issue me, i’d love to add more useful function to this framework. Thanks.

Latest podspec

{
    "name": "SQAutoScrollView",
    "version": "1.0.1",
    "summary": "banner auto scroll that is a simple and easy to use",
    "homepage": "https://github.com/YinSiQian/SQAutoScrollView",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "YinSQ": "[email protected]"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/YinSiQian/SQAutoScrollView.git",
        "tag": "1.0.1"
    },
    "source_files": "SQAutoScrollView/Source/*.swift",
    "frameworks": "UIKit",
    "requires_arc": true,
    "dependencies": {
        "Kingfisher": [
            "~> 4.0.1"
        ]
    },
    "pushed_with_swift_version": "4.0"
}

Pin It on Pinterest

Share This