A lightweight animation flowlayout for UICollectionView completely written in Swift 4

VegaScroll

VegaScroll is a lightweight animation flowlayout for UICollectionView completely written in Swift 4, compatible with iOS 11 and Xcode 9.



  • language: Swift 4
  • platform: ios
  • device: iphone
  • license: MIT

Tag

Download

Installation

CocoaPods

Add the following line in your Podfile.
pod 'VegaScrollFlowLayout'

Carthage

If you're using Carthage you can add a dependency on VegaScroll by adding it to your Cartfile:
github "AppliKeySolutions/VegaScroll"

Usage

import VegaScrollFlowLayout

let layout = VegaScrollFlowLayout()
collectionView.collectionViewLayout = layout
layout.minimumLineSpacing = 20
layout.itemSize = CGSize(width: collectionView.frame.width, height: 87)
layout.sectionInset = UIEdgeInsets(top: 10, left: 0, bottom: 10, right: 0)

0 Comments: