DVViewPager 1.3

DVViewPager 1.3

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Nov 2017

Maintained by Nam Dinh Vu.



  • By
  • namdv

DVViewPager

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.