FlowKit
FlowKit copied to clipboard
Avoid FlowCollectionDirector to reset sectionInset, minimumInteritemSpacing and minimumLineSpacing of UIColletionViewLayout
Why do you clean some layout properties after initialising FlowCollectionDirector?
self.layout?.sectionInset = .zero
self.layout?.minimumInteritemSpacing = CGFloat.leastNormalMagnitude
self.layout?.minimumLineSpacing = 0
Can't this be a problem? Because if I initialise UICollectionView from code, then I need to pass layout into its initialiser. And before doing that I may want to configure somehow my layout. But later when I initialise an adapter some my changes may be overridden
Absolutely true, it was added for test and never removed. My fault, fixed for the next release.
Thanks 👍