This error is still ongoing. I turned Bo Yuan into a nasty hack into Swift. (No offense, Bo Yuan, this is NOT YOUR mistake, we have to make this a terrible workaround! I am still breaking this code as soon as there is an official fix. For now, this is only going to save my development efforts.)
class HackedCollectionView: NSCollectionView { override func setFrameSize(_ newSize: NSSize) { let size = collectionViewLayout?.collectionViewContentSize ?? newSize super.setFrameSize(size) if let scrollView = enclosingScrollView { scrollView.hasHorizontalScroller = size.width > scrollView.frame.width } } }
Note that this definitely needs to be done as soon as possible, since it causes a call for each frame of the animation when scrolling. Not good. Please, please ask someone to solve this problem or find a suitable solution. It is impossible to scroll horizontally funny.
source share