popover no longer anchoring

My old UIKit popovers are no longer anchoring to their sourceView and sourceRect. Started happening while testing on IPadOS 18.5 after updating to Xcode 16.4. Has anyone else had to fix this problem? Popovers now slide up from the bottom to the center of the screen.

Accepted Answer

Found the issue: Tab bar needed traitOverrides.horizontalSizeClass = .unspecified, was set to .compact.

popover no longer anchoring
 
 
Q