Created
August 23, 2017 07:39
-
-
Save alg/e6620152c168e25e427b650d288da26a to your computer and use it in GitHub Desktop.
Invalidating item sizes with collection view resizing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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