On coding, tech, privacy, AI and whatever else comes to this mind.

Is there no way in UIKit to do a custom animation from the preview of a context menu to a new view controller triggered from one of the menu actions?

I am stuck at getting the frame of the preview's view. The previewViewController property of the UIContextMenuInteractionAnimating is always nil. I can hang onto it manually, but it's not in the view hierarchy nor does it have a window, so I can't get the frame that way either.

This isn’t too bad but it’d be nicer to directly animate from the preview to the track list.

I vaguely recall that this used to be possible with the old Peek & Pop, but can’t figure out how to replicate this from a context menu.