Latest 1.3
Homepage https://github.com/nitrochaien/DVViewPager
License MIT
Platforms ios 8.0
Authors

Version
License
Platform

Introduction

  • Android’s ViewPager implemented in Swift 4
  • Load images from URLs (using SDWebImage)

Requirements

  • Xcode 9+
  • iOS 10+

Installation

DVViewPager is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod 'DVViewPager'

How to use

let width = UIScreen.main.bounds.width
let height = width * 9 / 16

let infiniteScrollView = InfiniteScrollView(frame: CGRect(x: 0, y: 0, width: width, height: height), collectionViewLayout: UICollectionViewFlowLayout())
infiniteScrollView.backgroundColor = .green
infiniteScrollView.setData(myList)

view.addSubview(infiniteScrollView)

Note

width property must be Srceen Width

Author

[email protected]

License

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

Latest podspec

{
    "name": "DVViewPager",
    "version": "1.3",
    "summary": "Android ViewPager written in Swift 4",
    "description": "TODO: Add long description of the pod here.",
    "homepage": "https://github.com/nitrochaien/DVViewPager",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "namdv": "[email protected]"
    },
    "source": {
        "git": "https://github.com/nitrochaien/DVViewPager.git",
        "tag": "1.3"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "DVViewPager/Classes/**/*"
}

Pin It on Pinterest

Share This