Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/siridx/dxscaleflowlayout
Custom collectionView layout that display scaled up/down cells
https://github.com/siridx/dxscaleflowlayout
scaleable scaleflowlayout swift ui uicollectionview uicollectionviewcell uicollectionviewflowlayout
Last synced: 15 days ago
JSON representation
Custom collectionView layout that display scaled up/down cells
- Host: GitHub
- URL: https://github.com/siridx/dxscaleflowlayout
- Owner: SiriDx
- License: mit
- Created: 2018-10-15T10:14:20.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2018-11-20T10:00:49.000Z (about 6 years ago)
- Last Synced: 2024-03-14T21:21:54.267Z (10 months ago)
- Topics: scaleable, scaleflowlayout, swift, ui, uicollectionview, uicollectionviewcell, uicollectionviewflowlayout
- Language: Swift
- Homepage:
- Size: 6.74 MB
- Stars: 37
- Watchers: 3
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# DXScaleFlowLayout
![CocoaPods](https://img.shields.io/cocoapods/v/DXScaleFlowLayout.svg)
![Platform](https://img.shields.io/badge/platforms-iOS%208.0+-333333.svg)
![Swift](https://img.shields.io/badge/Swift-4.2-orange.svg)DXScaleFlowLayout is a subclass of the UICollectionViewFlowLayout allowing the display of scale up/down cells in a UICollectionView.
![Demo](https://github.com/SiriDx/DXScaleFlowLayout/blob/master/Resources/scaleflowlayout.gif)
1. [Requirements](#requirements)
2. [Integration](#integration)
3. [Usage](#usage)
- [Basics](#basics)
- [Property](#property)## Requirements
- iOS 9.0+
- Xcode 8## Integration
#### CocoaPods (iOS 8+)
You can use [CocoaPods](http://cocoapods.org/) to install `DXScaleFlowLayout` by adding it to your `Podfile`:
```ruby
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
```swift
import DXScaleFlowLayout
```Create an instance of DXScaleFlowLayout with transform scale you need to initialize your UICollectionView
```swift
let scaleLayout = DXScaleFlowLayout()
scaleLayout.transformScale = 0.15UICollectionView(frame: .zero, collectionViewLayout: scaleLayout)
```#### Property
- **transformScale**:
```swift
open var transformScale: CGFloat
```- **minimumAlpha**:
```swift
open var minimumAlpha: CGFloat
```- **isPagingEnabled**:
```swift
open var isPagingEnabled: Bool
```