Latest 1.0.0
License MIT
Platforms ios 8.0
Dependencies Texture, IrregularCollectionUIKit

CI Status


To run the example project, clone the repo, and run pod install from the Example directory first.

You can implement layout of collection view like this screenshot :)

To implement collection view with the class ASIrregularCollectionViewController using UIKit for Texture

class DemoViewController: ASIrregularCollectionViewController {
    override func viewDidLoad() {

        collectionViewLayout.columnSpacing = 1
        collectionViewLayout.numberOfColumns = 3
        collectionViewLayout.sectionInset = UIEdgeInsetsMake(1, 1, 1, 1)
    override func numberOfSections(in collectionNode: ASCollectionNode) -> Int {
        return 1
    override func collectionNode(_ collectionNode: ASCollectionNode, numberOfItemsInSection section: Int) -> Int {
        return contents.count
    override func collectionNode(_ collectionNode: ASCollectionNode, nodeBlockForItemAt indexPath: IndexPath) -> ASCellNodeBlock {
        return {
            return SampleViewCellNode(content: self.contents[indexPath.item])
    override func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, originalItemSizeAt indexPath: IndexPath) -> CGSize {
        let content = contents[indexPath.item]
        return CGSize(width: CGFloat(content.width), height: CGFloat(content.height))


iOS Deployment Target 8.0 higher


ASIrregularCollectionUIKit is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod "ASIrregularCollectionUIKit"


Carthage is a decentralized dependency manager that builds your dependencies and provides you with binary frameworks.

You can install Carthage with Homebrew using the following command:

$ brew update
$ brew install carthage

To integrate Alamofire into your Xcode project using Carthage, specify it in your Cartfile:

github "pisces/ASIrregularCollectionUIKit" ~> 1.0.0

Run carthage update to build the framework and drag the built ASIrregularCollectionUIKit.framework into your Xcode project.


Steve Kim, [email protected]


ASIrregularCollectionUIKit is available under the MIT license. See the LICENSE file for more info.

Latest podspec

    "name": "ASIrregularCollectionUIKit",
    "version": "1.0.0",
    "summary": "Irregular Collection View Layout and Controller for Texture.",
    "description": "Irregular Collection View Layout and Controller for Texture",
    "homepage": "",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    "authors": {
        "Steve Kim": "[email protected]"
    "source": {
        "git": "",
        "tag": "1.0.0"
    "platforms": {
        "ios": "8.0"
    "source_files": "ASIrregularCollectionUIKit/Classes/**/*",
    "dependencies": {
        "Texture": [
            "~> 2.5"
        "IrregularCollectionUIKit": [
            "~> 2.0.1"

Pin It on Pinterest

Share This