Questions tagged [3dtouch]

Use this tag when developing apps that use the 3D Touch sensitivity feature on newer Apple Devices (iPhone 6s / 6s Plus and newer).

3D Touch is a new feature in Apple's iPhone 6s and 6s Plus that allows for depth sensitivity.

From the Apple iPhone 6s page:

3D Touch

The next generation of Multi‑Touch.

iPhone 6s introduces an entirely new way to interact with your phone. For the first time, iPhone senses how much pressure you apply to the display. In addition to familiar Multi‑Touch gestures like Tap, Swipe, and Pinch, 3D Touch introduces Peek and Pop. This brings a new dimension of functionality to the iPhone experience. And when you use 3D Touch, your iPhone responds with subtle taps. So not only will you see what a press can do — you’ll feel it.

Not to be confused with , which has one fewer sensitivity level.

361 questions
10
votes
2 answers

Make XCUIElement perform 3D touch for Automate UITest?

I'm creating Automate UITest test case where I'd like to test the scenario when users make 3D Touch interaction with an element, then shows them Peek and Pop view. I can't seem to find any possible ways to simulate 3D Touch on an element and…
AGPurich
  • 101
  • 3
10
votes
1 answer

Using 3D Touch with storyboard's peek and pop

I found very easy way to use 3D Touch — check "Peek & Pop" in storyboard. But I'm struggling with one problem. I have UITableView, when user touches cell all is working ok with my code: override func prepareForSegue(segue: UIStoryboardSegue, sender:…
Vasily
  • 3,740
  • 3
  • 27
  • 61
10
votes
3 answers

forceTouchCapability returning nil

I am trying to incorporate some 3D touch into an application and I've run into a weird issue where the forceTouchCapability check is returning nil on viewDidLoad but not in viewWillAppear/viewDidAppear. I'm aware that this is only available on iOS…
ajfigueroa
  • 597
  • 7
  • 16
10
votes
7 answers

Testing 3D touch with iOS Simulator

Questions: I was wondering if anyone has tried 3D touch feature on a simulator or rather anyone know whether it actually works there or not. I know it's a hardware based feature and support is there only for latest iPhone 6S & iPhone 6S Plus…
Abhinav
  • 37,684
  • 43
  • 191
  • 309
10
votes
3 answers

3D Touch Peek and Pop from UITableViewCell how to hand over data to other UIViewController?

my app stores different attributes in Core Data objects. They are all shown in a UITableView, if you click a cell, a DetailView is shown. the usual stuff like in the Master-Detail-XCode-Template. Now I want to implement 3D Touch with peek and pop.…
Kreuzberg
  • 894
  • 1
  • 9
  • 18
10
votes
1 answer

Issues with 3D Touch and state restoration

I am working on implementing state restoration into my app, however I have ran into an issue. I recently added 3D Touch support to the table view, and it worked perfectly every time except now that I have added state restoration. When the app…
user3746428
  • 11,047
  • 20
  • 81
  • 137
9
votes
4 answers

Is it possible to change UIPreviewAction color?

The only options for styling I saw in the API are: UIPreviewActionStyleDefault UIPreviewActionStyleSelected, UIPreviewActionStyleDestructive Is it possible to somehow paint the buttons in another color? Our designer really didn't liked the default…
Paulo Cesar
  • 2,250
  • 1
  • 25
  • 35
9
votes
2 answers

3D Touch shortcuts won't work due to Unexpected Crash

I am trying to add 3D Touch Shortcuts to an application, I have managed to have the shortcuts appear when using 3DTouch on the app icon from the homescreen; however when using the shortcut the application crashes on load and I am unsure why. I have…
RileyDev
  • 2,950
  • 3
  • 26
  • 61
9
votes
3 answers

How to implement 3D-Touch Peek-and-select?

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…
Ortwin Gentz
  • 52,648
  • 24
  • 135
  • 213
8
votes
1 answer

3D Touch Peek And Pop on UITableViewCell Objective C Code. (Force Touch)

I need to enable Peek And Pop functionality on a UITableViewCell in Objective C by using Force Touch. And also need to show some actions under peek view like default mail app. I am new to iOS and please help me to get there.
joy dep
  • 83
  • 1
  • 4
8
votes
2 answers

Show Large 3D Touch Shortcut Widget

In iOS 10, when 3D touching on your app, a widget for the app appears along with 3D touch shortcuts. That widget is automatically the small version of your app's widget; is there any way to make that widget the large version of the widget (which is…
owlswipe
  • 19,159
  • 9
  • 37
  • 82
8
votes
4 answers

ios - Dynamically edit 3d touch shortcut list

I want to add a "Continue" shortcut to my game. But when user will finish my game completely I want this to be either removed or replaced by another shortcut. Is this possible? I know 3d touch is handled by ios system, but maybe there are still some…
Andrew Volodin
  • 159
  • 1
  • 10
8
votes
4 answers

3D Touch Peek View Will not slide up for action

I have a table view. On 3D Touch I preview a pdf in a QLPreviewController. The peek and the pop work as intended. For some reason I cannot get the preview controller view to slide up and show my action items. I am returning a valid array of…
Dean Davids
  • 4,174
  • 2
  • 30
  • 44
8
votes
1 answer

How do I localize static UIApplicationShortcutItems?

With the iPhone 6s, Apple has introduced a new feature called "3D Touch". App developers are able to use this technology by using it within their apps or provide so-called UIApplicationShortcutItems on the home screen which appear when you 3D Touch…
Sam0711er
  • 834
  • 10
  • 24
7
votes
0 answers

Custom Preview/Commit View Controllers When 3D Touching a Link in a UITextView

I have a UITextView that displays an NSAttributedString that contains various links (via NSLinkAttributeName) and I want to be able to use my own view controllers as the previewing and commit view controllers rather than the default behaviour. I…
hallejs
  • 71
  • 2
1
2
3
24 25