Skip to content

Commit e74f913

Browse files
uroskkzaher
authored andcommitted
Issue #95
RxCollectionViewSectionedReloadDataSource layout related crash on model changes.
1 parent ce2de67 commit e74f913

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Sources/DataSources+Rx/RxCollectionViewSectionedReloadDataSource.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ open class RxCollectionViewSectionedReloadDataSource<S: SectionModelType>
3030
#endif
3131
dataSource.setSections(element)
3232
collectionView.reloadData()
33+
collectionView.collectionViewLayout.invalidateLayout()
3334
}.on(observedEvent)
3435
}
3536
}

0 commit comments

Comments
 (0)