Skip to content

Instantly share code, notes, and snippets.

@alg
Created August 23, 2017 07:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alg/e6620152c168e25e427b650d288da26a to your computer and use it in GitHub Desktop.
Save alg/e6620152c168e25e427b650d288da26a to your computer and use it in GitHub Desktop.
Invalidating item sizes with collection view resizing
class MyCollectionView: NSCollectionView {
override var frame: NSRect {
didSet {
collectionViewLayout?.invalidateLayout()
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment