Latest1.1.1
Homepagehttps://github.com/TopicSo/RAMCollectionViewFlemishBondLayout
LicenseMIT This code is distributed under the terms and conditions of the MIT license.

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the “Software”), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Platformsios 6.0, requires ARC
Authors

Introduction

RAMCollectionViewFlemishBondLayout was written by Rafael Aguilar for Crows & Dogs.

RAMCollectionViewFlemishBondLayout is a UICollectionViewLayout subclass for displaying cells in groups (highlighting one of them) with optional header/footer views and supported multiple sections. Highlighted cell occupy much of the space and the remaining cells occupy space equally. See the example screenshots for what this looks like.

Screenshots

Screenshot 1

Screenshot 2

Usage

Setup Instructions

Cocoapods

CocoaPods is a dependency manager for Objective-C, which automates and simplifies the process of using 3rd-party libraries in your projects.

Podfile

pod 'RAMCollectionViewFlemishBondLayout', '~> 1.1.1'

Manual

Add RAMCollectionViewFlemishBondLayout folder to your project.

Example

self.collectionViewLayout = [[RAMCollectionViewFlemishBondLayout alloc] init];
self.collectionView.collectionViewLayout = self.collectionViewLayout;

Properties

  • numberOfElements: Number to be grouped cells (Default: 3).
  • highlightedCellWidth: Width of highlighted cell.
  • highlightedCellHeight: Height of highlighted cell.

RAMCollectionViewFlemishBondLayoutDelegate

All are optional.

  • collectionView:layout:highlightedCellDirectionForGroup:atIndexPath:: Ask the delegate the direction of the highlighted cell on a particular group. Available values: RAMCollectionViewFlemishBondLayoutGroupDirectionLeft & RAMCollectionViewFlemishBondLayoutGroupDirectionRight.
  • collectionView:layout:estimatedSizeForHeaderInSection:: Asks the delegate for the size of the header view in the specified section.
  • collectionView:layout:estimatedSizeForFooterInSection:: Asks the delegate for the size of the footer view in the specified section.

Tasks List

  • Sticky header
  • Add Item Spacing

Requirements

Requires iOS 6.0+ and ARC.

Contributing

Forks, patches and other feedback are welcome. I just would love to know if you’re using it in any project.

MIT License

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

Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:

The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Latest podspec

{
    "name": "RAMCollectionViewFlemishBondLayout",
    "version": "1.1.1",
    "summary": "UICollectionViewLayout for displaying cells in groups (highlighting one of them).",
    "description": "RAMCollectionViewFlemishBondLayout is a UICollectionViewLayout subclass for displaying cells in groups (highlighting one of them) with optional header/footer views and supported multiple sections. Highlighted cell occupy much of the space and the remaining cells occupy space equally.",
    "authors": {
        "Rafael Aguilar Martin": "[email protected]"
    },
    "homepage": "https://github.com/TopicSo/RAMCollectionViewFlemishBondLayout",
    "source": {
        "git": "https://github.com/TopicSo/RAMCollectionViewFlemishBondLayout.git",
        "tag": "1.1.1"
    },
    "platforms": {
        "ios": "6.0"
    },
    "requires_arc": true,
    "source_files": "RAMCollectionViewFlemishBondLayout/*.{h,m}",
    "license": {
        "type": "MIT",
        "text": "                This code is distributed under the terms and conditions of the MIT license.nn                Permission is hereby granted, free of charge, to any person obtaining a copy ofn                this software and associated documentation files (the "Software"), to deal inn                the Software without restriction, including without limitation the rights ton                use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies ofn                the Software, and to permit persons to whom the Software is furnished to do so,n                subject to the following conditions:nn                The above copyright notice and this permission notice shall be included in alln                copies or substantial portions of the Software.nn                THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS ORn                IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESSn                FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS ORn                COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHERn                IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR INn                CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.n"
    }
}

Pin It on Pinterest

Share This