在iOS 13中呈现全屏模式时是否可以使用滑动来关闭? [英] Is it possible to use swipe to dismiss while presenting a fullscreen modal in iOS 13?

查看:65
本文介绍了在iOS 13中呈现全屏模式时是否可以使用滑动来关闭?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

随着iOS 13中新的默认卡模式演示,有一个不错的功能可以通过滑动来消除.呈现经典 .fullscreen 模式时是否可以使用此功能?

With the new default card modal presentation in iOS 13, there is a nice feature that is swipe to dismiss. Is it possible to use this feature while presenting a classic .fullscreen modal?

我检查了全屏显示时 isModalInPresentation 是否为假.

I checked and if isModalInPresentation is false while presenting in fullscreen.

有什么想法吗?

推荐答案

似乎只有当模式以表格形式显示时,才能撤消滑动,如今年的

It seems that the swipe to dismiss will only work if the modal is presented as a sheet, as stated in this year's wwdc:

现在,你们所有人都需要做什么才能支持拉开辞退"?一般来说,什么都没有.如果您以表格形式展示某些东西,则可以免费将其拉下.

Now, what do you all have to do to support Pull to Dismiss? In general, nothing. If you present something as a Sheet, the ability to pull it down comes for free.

这很有意义.当您将其显示为表格时,UI使其看起来像您可以向下滑动模式.当您以全屏显示时,用户应该向下滑动页面以将其关闭对于用户来说是不直观的.在这种情况下,我宁愿使用按钮.

And it makes sense. When you present it as a sheet, the UI makes it look like you can swipe the modal down. When you present it on fullscreen, it would not be intuitive for the user that he should swipe the page down to dismiss. I'd rather use a button on this case.

这篇关于在iOS 13中呈现全屏模式时是否可以使用滑动来关闭?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆