DXScaleFlowLayout is a subclass of the UICollectionViewFlowLayout allowing the display of scale up/down cells in a UICollectionView.
- iOS 9.0+
- Xcode 8
You can use CocoaPods to install DXScaleFlowLayout
by adding it to your Podfile
:
platform :ios, '8.0'
use_frameworks!
target 'MyApp' do
pod 'DXScaleFlowLayout', '~> 1.0.0'
end
To use this library in your project manually, you may drag DXScaleFlowLayout.swift to the project tree
Import DXScaleFlowLayout module
import DXScaleFlowLayout
Create an instance of DXScaleFlowLayout with transform scale you need to initialize your UICollectionView
let scaleLayout = DXScaleFlowLayout()
scaleLayout.transformScale = 0.15
UICollectionView(frame: .zero, collectionViewLayout: scaleLayout)
- transformScale:
open var transformScale: CGFloat
- minimumAlpha:
open var minimumAlpha: CGFloat
- isPagingEnabled:
open var isPagingEnabled: Bool