Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
class DynamicHeightCollectionView: UICollectionView {
override func layoutSubviews() {
override var intrinsicContentSize: CGSize {
return contentSize

This comment has been minimized.

Copy link

pingwinator commented Mar 11, 2019

imho, better to use a swift extension for comparison 2 sizes: if !bounds.size.equalTo(intrinsicContentSize) {

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.