Thanks for being a part of WWDC25!

How did we do? We’d love to know your thoughts on this year’s conference. Take the survey here

iOS 18 beta - Cancelling Interactive UICollectionView Layout Transition causes the collectionView to disappear

On iOS18 beta1 & beta2 builds, calling

 collectionView.cancelInteractiveTransition()

after a call to

 startInteractiveTransition(to:completion:) 

seems to remove the intermediate transition layout object from the collection view, but doesn't reinstalls the original layout, which results in the collection view disappearing completely.

This was not the case in previous iOS versions, so maybe a beta bug?

Possibly related, Xcode logs the following error in the console in the exact moment when the collectionView disappears:

“Requesting visual style in an implementation that has disabled it, returning nil. Behavior of caller is undefined.”

I filled a bug report, together with sample project, just in case FB14057335

Thanks!

Answered by manuelC in 799922022

This has been fixed in iOS 18 beta 6 (Build: 22A5338b) and is no longer an issue.

Awesome work. Thanks a lot!!

Accepted Answer

This has been fixed in iOS 18 beta 6 (Build: 22A5338b) and is no longer an issue.

Awesome work. Thanks a lot!!

iOS 18 beta - Cancelling Interactive UICollectionView Layout Transition causes the collectionView to disappear
 
 
Q