Latest 1.0.5
Homepage https://github.com/SiriDx/DXScaleFlowLayout
License MIT
Platforms ios 8.0, requires ARC
Authors

CocoaPods
Platform
Swift

DXScaleFlowLayout is a subclass of the UICollectionViewFlowLayout allowing the display of scale up/down cells in a UICollectionView.

Demo

  1. Requirements
  2. Integration
  3. Usage

Requirements

  • iOS 9.0+
  • Xcode 8

Integration

CocoaPods (iOS 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

Manually (iOS 7+)

To use this library in your project manually, you may drag DXScaleFlowLayout.swift to the project tree

Usage

Basics

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)

Property

  • transformScale:
open var transformScale: CGFloat
  • minimumAlpha:
open var minimumAlpha: CGFloat
  • isPagingEnabled:
open var isPagingEnabled: Bool

Latest podspec

{
    "name": "DXScaleFlowLayout",
    "version": "1.0.5",
    "summary": "Custom collectionView layout that display scaled up/down cells",
    "homepage": "https://github.com/SiriDx/DXScaleFlowLayout",
    "license": {
        "type": "MIT"
    },
    "authors": {
        "DeanChen": "[email protected]"
    },
    "requires_arc": true,
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/SiriDx/DXScaleFlowLayout.git",
        "tag": "1.0.5"
    },
    "source_files": "Source/*.swift"
}

Pin It on Pinterest

Share This