Latest 1.1.0
Homepage https://github.com/k373379320/ZBFancyCollectionView
License MIT
Platforms ios 8.0
Frameworks UIKit, CoreFoundation
Authors

CI Status
Version
License
Platform

Example

    self.collectionView = [UICollectionView fancyLayoutWithStyle:self.style];
    if (self.style == ZBFancyCollectionViewStyleCustom) {
        self.collectionView.fancyLayout.hoverIndexPath = [NSIndexPath indexPathForItem:0 inSection:0];
    }
    self.view.backgroundColor = self.collectionView.backgroundColor = [UIColor blackColor];
    [self.view addSubview:self.collectionView];
    [self.collectionView mas_makeConstraints:^(MASConstraintMaker *make) {
        if (@available(iOS 11.0, *)) {
            make.top.equalTo(self.view.mas_safeAreaLayoutGuideTop).offset(0);
            make.bottom.equalTo(self.view.mas_safeAreaLayoutGuideBottom).offset(0);
        } else {
            make.top.bottom.offset(0);
        }
        make.left.right.offset(0);
    }];
    __weak typeof(self) weakSelf = self;

    //register
    [self.collectionView zb_configTableView:^(ZBCollectionProtoFactory *config) {
        __strong typeof(weakSelf) strongSelf = weakSelf;
        [strongSelf makerConfig:config];
    }];
    //data
    [self.collectionView zb_setup:^(ZBCollectionMaker *maker) {
        __strong typeof(weakSelf) strongSelf = weakSelf;
        [strongSelf makerExample:maker];
    }];

Requirements

Installation

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

pod 'ZBFancyCollectionView'

Author

[email protected], [email protected]

License

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

Latest podspec

{
    "name": "ZBFancyCollectionView",
    "version": "1.1.0",
    "summary": "A delightful iOS ZBFancyCollectionView framework.",
    "homepage": "https://github.com/k373379320/ZBFancyCollectionView",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "[email protected]": "[email protected]"
    },
    "source": {
        "git": "https://github.com/k373379320/ZBFancyCollectionView.git",
        "tag": "1.1.0"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "ZBFancyCollectionView/Classes/**/*",
    "prefix_header_contents": "#import "ZBFancyCollectionViewPrefixHeader.h"",
    "frameworks": [
        "UIKit",
        "CoreFoundation"
    ]
}

Pin It on Pinterest

Share This