Latest 0.0.1
Homepage https://github.com/ChernyshenkoTaras/SquareFlowLayout
License MIT
Platforms ios 9.0
Authors

Swift 4.2.x
License
PRs Welcome

Makes your UICollectionView to looks like Instagram explore has never been so easy before.

SquareFlowLayout provide dynamic layout generation by defining which IndexPath should be expanded.

Flow layoutFlow layout

Installation

CocoaPods

pod 'SquareFlowLayout'

Manually

  1. Download and drop Classes folder into your project.
  2. Congratulations!

Usage

  1. Set SquareFlowLayout to your UICollectionView and set it flowDelegate
    let flowLayout = SquareFlowLayout()
    flowLayout.flowDelegate = self
    self.collectionView.collectionViewLayout = flowLayout
  1. Make your class conform to SquareFlowLayoutDelegate and use shouldExpandItem(at: ) -> Bool to decide which cell to expand
  2. Design your cells
  3. Populate your collectionView with data

Contributing to this project

If you like this tool, show your support by tell me how do u use it.

License

This code is distributed under the terms and conditions of the MIT license.

Latest podspec

{
    "name": "SquareFlowLayout",
    "version": "0.0.1",
    "summary": "A lightweight implementation of Instagram like UICollectionViewFlowLayout",
    "description": "Making more easy to implement dynamic flow layout similar for Instragram explore screen",
    "homepage": "https://github.com/ChernyshenkoTaras/SquareFlowLayout",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Taras Chernyshenko": "[email protected]"
    },
    "source": {
        "git": "https://github.com/ChernyshenkoTaras/SquareFlowLayout.git",
        "tag": "0.0.1"
    },
    "social_media_url": "https://twitter.com/@t_chernyshenko",
    "platforms": {
        "ios": "9.0"
    },
    "swift_version": "4.2",
    "source_files": "SquareFlowLayout/Source/Classes/**/*"
}

Pin It on Pinterest

Share This