[英]Tapping preview in context menu on iPad doesn't animate presentation of full screen view controller
I have a context menu in my app that shows a photo preview above the actions, and tapping the preview presents that view controller full-screen.我的应用程序中有一个上下文菜单,在操作上方显示照片预览,点击预览可全屏显示该视图控制器。 On iPhone, when you tap the preview there's a lovely animation - it bounces into full screen.在 iPhone 上,当您点击预览时,会出现一个可爱的动画 - 它会弹回全屏。 But on iPad, when you tap the preview the context menu dismisses and then the screen appears without any animation.但是在 iPad 上,当您点击预览时,上下文菜单会消失,然后屏幕会出现而没有任何动画。
This is the (new*) default behavior on iPad.这是 iPad 上的(新*)默认行为。 The idea being you can use your own presentation animation.这个想法是您可以使用自己的演示动画。 To get the system "pop" style that's default on iPhone, set the preferredCommitStyle
to .pop
on the UIContextMenuInteractionCommitAnimating
object.要获得 iPhone 上默认的系统“pop”样式,请在UIContextMenuInteractionCommitAnimating
对象UIContextMenuInteractionCommitAnimating
preferredCommitStyle
设置为.pop
。
*I think it changed in iOS 13.4. *我认为它在 iOS 13.4 中发生了变化。 This change broke the Photos app as well.此更改也破坏了照片应用程序。 😅 😅
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.