Ios 具有动态高度的IGListKit截面项目

Ios 具有动态高度的IGListKit截面项目,ios,swift,iglistkit,Ios,Swift,Iglistkit,我正在实施IGListKit,在我的部分中,我的物品中有一个具有动态高度 我遵循了IGListKit repo上的示例项目“SelfSizingCells”,但当我尝试复制它时,我的应用程序无限循环: "the item width must be less than the width of the UICollectionView minus the section insets left and right values, minus the content insets left and

我正在实施
IGListKit
,在我的部分中,我的物品中有一个具有动态高度

我遵循了IGListKit repo上的示例项目“SelfSizingCells”,但当我尝试复制它时,我的应用程序无限循环:

"the item width must be less than the width of the UICollectionView minus the section insets left and right values, minus the content insets left and right values"
在确保我在
UICollectionView
布局上设置了
estimatedSize
,并覆盖了单元格中的
preferredLayoutAttributesFitting
之后,我意识到只有在我加载分区中的一个项时,代码才起作用,而不是上面的其他项。。。因此,如果我的动态高度项在该部分中是单独的,则它可以工作

现在,我问自己是否可以将非动态高度项目与动态高度项目混合,因为在IGListKit示例中,仅显示同一项目的部分

注意:在我的部分中,控制器
sizeForItem
总是返回相同的静态大小