UICollectionViewDelegateFlowLayout, setting minimumLineSpacingForSectionAt to zero does not render the UICollectionView in iOS17.

I recently upgraded Xcode15 and launched the app with iOS 17 simulator, i found that my custom UICollectionView is not redering. After analyzing I found that to fix this I have to make MinimumLineSpacingForSectionAt non-zero. But I want to keep minimumLineSpacingForSectionAt as zero in my app with which my UICollectionView was working fine in iOS16 and previous iOS versions. please suggest to reson behind this behaviour and share the solution.

UICollectionViewDelegateFlowLayout, setting minimumLineSpacingForSectionAt to zero does not render the UICollectionView in iOS17.
 
 
Q