I have code that invalidates the layout of a UICollectionView
. I want to wait until the layout has updated before executing some code.
Does the layout get updated in the main queue? And if so, dispatching my code to the main queue would ensure it's executed after, correct? This doesn't seem to be the case however, as my code does appear to be executed beforehand.