Skip to content

Commit 1bf4ec5

Browse files
authored
Merge pull request #7 from pisces/0.1.23
Update library info
2 parents 698d657 + 290e41a commit 1bf4ec5

File tree

3 files changed

+42
-3
lines changed

3 files changed

+42
-3
lines changed

README.md

Lines changed: 42 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# IrregularCollectionUIKit
22

3-
[![CI Status](http://img.shields.io/travis/Steve Kim/IrregularCollectionUIKit.svg?style=flat)](https://travis-ci.org/Steve Kim/IrregularCollectionUIKit)
3+
[![CI Status](http://img.shields.io/travis/pisces/IrregularCollectionUIKit.svg?style=flat)](https://travis-ci.org/pisces/IrregularCollectionUIKit)
44
[![Version](https://img.shields.io/cocoapods/v/IrregularCollectionUIKit.svg?style=flat)](http://cocoapods.org/pods/IrregularCollectionUIKit)
55
[![License](https://img.shields.io/cocoapods/l/IrregularCollectionUIKit.svg?style=flat)](http://cocoapods.org/pods/IrregularCollectionUIKit)
66
[![Platform](https://img.shields.io/cocoapods/p/IrregularCollectionUIKit.svg?style=flat)](http://cocoapods.org/pods/IrregularCollectionUIKit)
@@ -9,11 +9,50 @@
99

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

12-
## You can implement with collect view like this screenshot :)
12+
## You can implement with collection view like this screenshot :)
1313
<p valign="top">
14-
<img src="screenshots/sh_001.png"/>
14+
<img src="screenshots/sh_002.png" width="320"/>
15+
<img src="screenshots/sh_003.png" width="320"/>
1516
</p>
1617

18+
### To implement collection view with the class ASIrregularCollectionViewController using Facebook AsyncDisplayKit
19+
```Swift
20+
class ASExampleCollectionViewController: ASIrregularCollectionViewController {
21+
22+
override func viewDidLoad() {
23+
super.viewDidLoad()
24+
25+
self.collectionViewLayout.columnSpacing = 1.4
26+
self.collectionViewLayout.numberOfColumns = 3
27+
self.collectionViewLayout.headerHeight = 0
28+
self.collectionViewLayout.footerHeight = 0
29+
30+
self.collectionView.allowsMultipleSelection = true
31+
self.collectionView.alwaysBounceVertical = true
32+
33+
self.collectionView.tuningParameters(for: .visibleOnly, rangeType: .fetchData)
34+
}
35+
}
36+
```
37+
38+
### To implement collection view with the class IrregularCollectionViewController using UIKit
39+
```Swift
40+
class ExampleCollectionViewController: IrregularCollectionViewController {
41+
42+
override func viewDidLoad() {
43+
super.viewDidLoad()
44+
45+
self.collectionViewLayout.columnSpacing = 1.4
46+
self.collectionViewLayout.numberOfColumns = 3
47+
self.collectionViewLayout.headerHeight = 0
48+
self.collectionViewLayout.footerHeight = 0
49+
50+
self.collectionView.allowsMultipleSelection = true
51+
self.collectionView.alwaysBounceVertical = true
52+
}
53+
}
54+
```
55+
1756
## Requirements
1857

1958
## Installation

screenshots/sh_002.png

1.73 MB
Loading

screenshots/sh_003.png

1.56 MB
Loading

0 commit comments

Comments
 (0)