Need help with PBJHexagon?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

piemonte
207 Stars 24 Forks MIT License 25 Commits 2 Opened issues

Description

⬢ iOS hexagon grid layout for UICollectionViews

Services available

!
?

Need anything else?

Contributors list

# 13,265
iOS
Swift
Objecti...
swift-f...
9 commits

PBJHexagon

Hexagon

PBJHexagon
is a simple hexagon grid flow layout for UICollectionViews. It was originally created for the DIY app to display skill hexagons, a video can be found here.

Please review the release history for more information.

The github issues page is a great place to start a discussion but also allows others to benefit and chime in on the project too.

Pod Version

Installation

CocoaPods is the recommended method of installing, just add the following line to your

Podfile
:
pod 'PBJHexagon'

Usage

#import "PBJHexagonFlowLayout.h"
PBJHexagonFlowLayout *flowLayout = [[PBJHexagonFlowLayout alloc] init];
flowLayout.scrollDirection = UICollectionViewScrollDirectionVertical;
flowLayout.sectionInset = UIEdgeInsetsZero;
flowLayout.headerReferenceSize = CGSizeZero;
flowLayout.footerReferenceSize = CGSizeZero;
flowLayout.itemSize = CGSizeMake(80.0f, 92.0f);
flowLayout.itemsPerRow = 4;

_hexagonGridViewController = [[UICollectionViewController alloc] initWithCollectionViewLayout:flowLayout];

Resources

License

PBJHexagon is available under the MIT license, see the see the LICENSE file for more information.

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.