iOS 13.5 - Drag preview does not respect UIView frame when dragged from UIStackView

Originator:martijnvandenberghe
Number:rdar://FB7711539 Date Originated:2020/05/23
Status:Open Resolved:
Product:UIKit Product Version:
Classification: Reproducible:YES
 
Since iOS 13.5
When dragging a subview from a UIView:
- The lift preview is fine and correctly positioned
- When the drag of a subview starts, the preview works as expected
When dragging an arranged subview from a UIStackView:
- The lift preview is fine and correctly positioned
- When the drag of an arranged UIView starts, the preview comes "flying in" from the right side of the screen
- Expected behavior is the same from using a UIView as a container for subviews.

In the example attached you can clearly see the behavior when running the code in iOS 13.5.
When using previous versions of iOS this behavior does not occur

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!