I am looking to subclass UICollectionViewCompositionalLayout with the objective of overriding layoutAttributesForElement(in:)
to get the initial layout attributes using super.layoutAttributesForElement(in: rect)
and modifying the attributes if some of them are overlapping (some of my items will bleed into other sections, and if an item is overlapping with another item that I want it to move one of them down until they no longer overlap).
Are there any possible issues with this? One I’m suspecting is if layoutAttributesForItem(at:) is called then I could run into some issues since I can’t do what I’m trying to do by overriding this function.