Popover attached to cell in UICollectionView moving when is called the ReloadData of this collection view.

Hi all,


I created a UIViewController in a popover modal presentation and I present it when the user clicks on a cell of a collection view, attaching it to the cell. When the reload data of this collection view is called, and the popover is open, the popover changes the position to another cell.


I have an example of this behavior in the following git repository: https://github.com/diegodossantos95/UICollectionViewPopoverBug

And a video in vimeo: https://vimeo.com/385021234


Steps to reproduce in the repository:

1. Click on a collection cell

2. Popover opens

3. Wait for the reload data


This only happens on iOS 13, in iOS 12 we don't have this issue.


Thanks,

Diego.