Phone, Reminders, and Maps use a different 3D-Touch Peek UI allowing to select an action in one go. For instance, force-press on a reminder and select "Remind me on a day" in one go, without releasing the finger. It also differs visually from standard 3D Touch previews using the UIViewControllerPreviewing
API as it displays a custom icon alongside left-aligned text.
I couldn't find a way to do this using the official API. Did I miss something or is this a private API indeed?
By giving the screen varying levels of pressure, a user can do things like preview a page using Peek, then Pop to the previewed page.
Apple 3D Touch is a hardware-based feature Apple introduced in iPhone 6s and 6s Plus devices running iOS 9 that perceives the amount of force a user puts on the touch screen to activate different functions. With Apple 3D Touch, users can take actions without navigating away from the original screen they were on.
I asked my question on the Apple Developer Forums as well and received this reply from Apple:
Currently there is not public API to do these things. Please file bug reports if this is something you want to do in your app, and include specific details of what you're looking to do.
So it's currently not possible using the official SDK. I filed this enhancement request radar and I encourage you to dupe it if you need this, too!
For future readers, the response from Apple for this question is:
Currently there is not public API to do these things. Please file bug reports if this is something you want to do in your app, and include specific details of what you're looking to do.
Source: Apple Developer Forum
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With