简体   繁体   中英

In-app “Quick Actions” for 3D Touch

In iOS 11 and in Swift, how can I display 3D Touch "quick actions" like those on the Home screen (curved menu items and blurred background except for selected element), but inside my app?

See this screenshot of the Phone app for reference.:

在此处输入图片说明

Check out this documentation on in-app peek & pop. There's a "ViewControllerPreviews" sample mentioned at the top that you can download.

https://developer.apple.com/library/content/documentation/UserExperience/Conceptual/Adopting3DTouchOniPhone/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM