Skip to content

Commit 2acf828

Browse files
authored
Merge pull request #7 from giulio92/develop
2 parents 12acbd6 + 2c5033a commit 2acf828

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

GLTableCollectionView/GLCollectionTableViewCell.swift

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,11 +107,13 @@ class GLCollectionTableViewCell: UITableViewCell {
107107

108108
It's recommended to keep the variable `public` so it would be easier to
109109
access later in the code, for example in UITableView's `dataSource` and
110-
`delegate` methods. For light to mid-heavy implementations `weak` is also
111-
suggested.
110+
`delegate` methods.
111+
112+
GLIndexedCollectionView requires a `strong` ARC reference, do not assign a
113+
`weak` reference otherwise it could result in a crash.
112114

113115
*/
114-
weak var collectionView: GLIndexedCollectionView!
116+
var collectionView: GLIndexedCollectionView!
115117
var collectionFlowLayout: GLIndexedCollectionViewFlowLayout!
116118

117119
/**

0 commit comments

Comments
 (0)