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

PHLivePhotoView and backwards compatibility with UILongPressGestureRecognizer

When using PHLivePhotoView, one does not need to add a 3D Touch gesture to this view to trigger playback of the Live Photo. This functionality is built right in. Also know that Live Photos can be played on devices that don't support 3D Touch, just…
Jordan H
  • 52,571
  • 37
  • 201
  • 351
0
votes
1 answer

3D Touch Quick Action 4 Item Limit?

My app is set up with Quick Actions for 3D Touch. However, I noticed that I'm limited to only 4 items even when I try to add more. I haven't successfully found any documentation confirming this. Has anyone else found this limitation? Thanks, Hino
Hino B
  • 11
  • 2
0
votes
2 answers

Calculate preferredContentSize based on PHAsset size for a Preview View Controller

I am implementing a 3D Touch preview (peek) view controller to show upon firmly pressing on a PHAsset. The view controller that I return from previewingContext:viewControllerForLocation: simply shows the photo full screen. I'm currently not setting…
Jordan H
  • 52,571
  • 37
  • 201
  • 351
0
votes
1 answer

Using 3D Touch in my application

So i am trying to add 3D Touch on my application icon using shortCutItems. Here is my AppDelegate.swift: import UIKit import Parse //MARK: - Handle QuickActions For ShorCut Items -> AppDelegate Extension @available(iOS 9.0, *) typealias…
Roduck Nickes
  • 1,021
  • 2
  • 15
  • 41
0
votes
1 answer

Requiring 3D Touch only devices - iOS App Store

Is there a way to require the 3dtouch feature for a device to be able to download your app on the App Store?
ina
  • 19,167
  • 39
  • 122
  • 201
0
votes
1 answer

Implementing a UIApplicationShortcutItem

I was looking at the UIKit framework reference and came across UIApplicationShortcutItem. It is for 3D Touch. It contains this code sample: let existingShortcutItems = UIApplication.sharedApplication().shortcutItems ?? [] let anExistingShortcutItem…
Caleb Kleveter
  • 11,170
  • 8
  • 62
  • 92
0
votes
1 answer

how to add 3dtouchforce to UIButton?

I want to measure the touch force when tapping or dragging a button. i have created a UITapGestureRecognizer (for tapping) and added it to myButton like this: UITapGestureRecognizer *tapRecognizer2 = [[UITapGestureRecognizer alloc]…
Jeff Sab
  • 13
  • 1
0
votes
1 answer

Sending data to 3D Touch shortcut

I am building a weather application and I want to be able to have weather data (e.g. Temperature) be seen when a user activates a shortcut menu (via 3D Touch on the home screen). I would like the weather data to show up in the shortcut so the user…
Dylan Ireland
  • 929
  • 1
  • 10
  • 11
0
votes
2 answers

3D Touch peek and touches

I'm trying to implement the peek and pop actions from UIKit. I noticed that whenever I am in the peek view, there is no way for my view controller to receive touches. This is problematic because I plan to enable user interaction in this view…
shreyasva
  • 13,126
  • 25
  • 78
  • 101
0
votes
2 answers

How can I access iPhone's new 3D touch in Safari with Javascript?

Apple has announced that with its new iPhone 6S and 6S+, users can now use pressure to interact with their apps. Is there a JavaScript API for web developers to take advantage of this new functionality on standard websites as well? If so, how can it…
M -
  • 26,908
  • 11
  • 49
  • 81
0
votes
1 answer

Xcode 7.1.1 : How to test 3D touch in simulator

I've download sample code for 3D touch. How can 3D touch functionality can be tested in simulator? I'm using Xcode 7.1.1
Jayprakash Dubey
  • 35,723
  • 18
  • 170
  • 177
0
votes
2 answers

3D Quick Action Share function not worked when the App closed

Hi i have a problem with my App i have added 3D Touch Quick actions and my problem is when my app is not in multitasking then not open the Share sheet in my app have anyone a idea how can i fix the problem thats my code the problem is only in the…
chris188
  • 11
  • 3
0
votes
1 answer

iOS 9 selecting tabbar index with quick actions, performActionForShortcutItem

I have 5 tabs and want to go to a specific tab when user select a certain Quick Action. However, I've tried using notification center, referencing the master viewcontroller and referencing the tab in app delegate but none seems to work. The…
Tuan Anh Vu
  • 760
  • 1
  • 7
  • 26
0
votes
1 answer

Navigation/TabBarController disappear

I`m using this code in AppDelegate for make a shortcut when you long press the app before its launch. func application(application: UIApplication, performActionForShortcutItem shortcutItem: UIApplicationShortcutItem, completionHandler: (Bool) ->…
Scaly
  • 1
  • 2
0
votes
1 answer

Get force of a specific portion of the screen on iPhone 6s

Is it possible to get the force applied to a part of the screen on iOS 9 on the iPhone 6s? It's possible to access the force attribute of a UITouch instance. Is there some other way?
Jeff Huijsmans
  • 1,388
  • 1
  • 14
  • 35