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
7
votes
1 answer

Detecting UITouches while UIViewController is being shown as 3DTouch preview

Is it possible to detect touches and get the location of a touch from a UIViewController which is being currently used as previewingContext view controller for 3D Touch? (I want to change the image of within the preview controller when the touch…
kye
  • 2,166
  • 3
  • 27
  • 41
7
votes
0 answers

UIViewControllerPreviewingDelegate methods not called when UISearchController presented

When searchController is not presented 3d touch works as expected and delegate methods called. But not called when searchController is active. Creating of UISearchController looks like this let searchController =…
LDNZh
  • 1,136
  • 8
  • 14
7
votes
3 answers

UIApplicationLaunchOptionsShortcutItemKey not there in Swift 3?

Recently in Xcode 8 beta 6 (8S201h), this has become a problem. UIApplicationLaunchOptionsShortcutItemKey Here's the error : Anyone else having this issue? var performShortcutDelegate = true if let shortcutItem =…
Amit Kalra
  • 4,085
  • 6
  • 28
  • 44
7
votes
2 answers

Detect when an iOS 3D Touch peek has finished (without a pop)

I just started adding basic 3D Touch functionality to my app, and the first attempt at adding it has gone well, seems fairly straightforward. I was wondering however whether there was a way to detect that a peek had finished, and not gone into the…
jimbobuk
  • 1,211
  • 12
  • 25
7
votes
1 answer

UIApplicationShortcutItem - Can I use an image downloaded from the web as UIApplicationShortcutIcon?

I'm setting up some 3D Touch functionality and would like to use an image that has been downloaded from the web (can access via SDWebImage's cache) as an audio cover image in a UIApplicationShortcutItem, just like Apple's music app (see…
Marky
  • 1,294
  • 1
  • 18
  • 40
6
votes
2 answers

Trying to get Static 3D touch Quick Actions to work in Obj-C

So I want a pretty basic 3D touch setup. On my main UI, I have a 2 option segmented control and I basically want to have one option of it selected upon open when 3DQuickActionA is used, and the other option when 3DTouchQuickActionB is used. I've…
Branch
  • 387
  • 5
  • 16
6
votes
0 answers

Is there any way to write UI tests for force touch actions on a iOS app?

I was trying to write UI tests for home screen quick actions that I implemented for my iOS app. So when I start recording UI workflows, it doesn't let me capture the force touch events on the app. Instead it ignores the force touch and immediately…
grane2212
  • 764
  • 1
  • 10
  • 29
6
votes
5 answers

`touchesBegan:withEvent:` is delayed at left edge of screen

I'm experiencing an issue where the first call to touchesBegan:withEvent: on a UIView or UIViewController is delayed when you touch on the left edge of the screen. This seems to be a new issue with iOS 10, and only happens on devices with 3D Touch…
Jayson
  • 1,689
  • 14
  • 26
6
votes
1 answer

Disable iOS 10 Quick Actions Widget

In my app, I have a standard widget that comes with it. When I build with iOS 10, the widget is automatically included in the 3D Touch Quick Actions menu. This widget kind of duplicates the features of the Quick Actions that are already there. I…
jroschen
  • 161
  • 2
  • 6
6
votes
1 answer

Peek & Pop - Pop leading to wrong cell in UICollectionView

I have a UITableViewController that is embedded in a UINavigationController and I'm trying to implement Peek & Pop into the TableView. I have the "peek" part working perfectly, but when I try to "pop" into the next ViewController, the cell I was…
6
votes
2 answers

Disabling the 3D Touch Task Switcher Gesture on the Left Edge of the Screen

If you press firmly on the left edge of the screen using an iPhone with 3D touch you will bring up the task switcher. I'd like to know how I can disable this behavior in my app.
llama591
  • 453
  • 5
  • 15
6
votes
3 answers

3D Touch and UITableViewCell

I added some test 3D Touch functionality to UITableViewController on iPhone 6s. In general it works fine, but I was able to observe some 2 problems, and I am not sure what is happening and how to fix that in a normal way. 1) My cell is selectable,…
B.S.
  • 21,660
  • 14
  • 87
  • 109
6
votes
3 answers

iPhone 6s - iOS 9.1 crashing on [UICollectionViewController previewingContext:viewControllerForLocation:]

This is a pretty goofy stack trace, because looking around, the only thing I can think of is that the iPhone 6s user is trying to 3D-touch something, and my gesture recognizer (somewhere, I don't know which one because it doesn't tell me which line…
brandonscript
  • 68,675
  • 32
  • 163
  • 220
6
votes
3 answers

Touch events are delayed near left screen edge on iOS 9 only. How to fix it?

I am developing a keybaord extension for iOS. On iOS 9 the keys react imediatelly except for keys along left edge of the keyboard. Those react with around 0.2 second delay. The reason is that the touches are simply delivered with this delay to the…
Rasto
  • 17,204
  • 47
  • 154
  • 245
6
votes
3 answers

Checking for quick actions availability

I'm using home screen quick actions that's only supported in IOS9. Using the constant UIApplicationLaunchOptionsShortcutItemKey will crash if used in IOS8. What is the correct way to check if quick actions is supported? One way is to check for…
Toydor
  • 2,277
  • 4
  • 30
  • 48
1 2
3
24 25