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
38
votes
5 answers

3D touch/Force touch implementation

How can we implement 3D touch to check if the user taps on UIView or force touch on UIView? Is there a way to do this with UIGestureRecognize or only with UITouch?
Avi Rok
  • 550
  • 1
  • 4
  • 7
33
votes
2 answers

How do you localize static UIApplicationShortcutItems?

I have an application and I want to add a mix of static and dynamic app shortcut items. Localizing for dynamic items is pretty straightforward, using NSLocalizedString, but not so much with the items in your info.plist. I already have an…
Wayne Hartman
  • 18,369
  • 7
  • 84
  • 116
32
votes
2 answers

How do I specify a custom icon for a static UIApplicationShortcutItem in my iOS 9 App?

I'm currently implementing home screen Quick Actions for my iOS 9 app using 3D Touch. I have several actions using the existing System icons from the defined UIApplicationShortcutIconType enum. An Example:
Chris Allwein
  • 2,498
  • 1
  • 20
  • 24
29
votes
6 answers

Launching with UIApplicationShortcutItem

I'm implementing some 3D touch quick actions for my iOS 9 app in swift, and I have a curious issue. When my app is in the background and I launch with the quick action, everything goes as planned. When my app is totally dead (i.e. I killed it from…
Connor Hicks
  • 755
  • 2
  • 8
  • 25
25
votes
5 answers

3D Touch Home Shortcuts In Obj-C

All of my apps are currently written in Obj-C. The link https://developer.apple.com/library/content/samplecode/ApplicationShortcuts/Introduction/Intro.html#//apple_ref/doc/uid/TP40016545 for the sample code of implementing Home Screen Shortcuts…
user717452
  • 33
  • 14
  • 73
  • 149
20
votes
1 answer

Swift 3D Touch iOS 10 Home screen quick actions share Item missing

In my apps that use 3D touch home screen quick actions I do not have the new iOS 10 default sharing option that all apps got for free. I have seen some apps, for example Amazon, that have their 4 custom shortcut items (quick actions) and the 1…
crashoverride777
  • 10,581
  • 2
  • 32
  • 56
20
votes
5 answers

ios 9 iphone 6S Play Haptic feedback or vibrate

After user does force touch, I want to vibrate phone just like default behaviour. Is it haptic? If so, how shall I do?
Khant Thu Linn
  • 5,905
  • 7
  • 52
  • 120
14
votes
6 answers

Check if 3D touch is supported and enabled on the iOS9 device

I tried to access the trait collection and check "forceTouchCapability", but "forceTouchCapability" simply checks to see if the device is iOS 9.0 or greater. So, this means that on any device with iOS 9, force touch is 'available'. I need to a way…
Prodigga
  • 1,457
  • 1
  • 22
  • 37
13
votes
3 answers

Can you hide app widgets from appearing under the 3D touch quick actions?

I'd like to remove my apps Today Widget from appearing when 3D touching the app icon on the home screen because showing the quick actions and the Today Widget just doubles up the actions app provides (seen in screenshot). Is there anyway to hide…
Troy R
  • 426
  • 2
  • 16
13
votes
1 answer

3D Touch Shortcut Widget

i'm trying to implement new "quick menu widget" in iOS 10 available with 3dtouch. My app has multiple today extension and apple guidelines report If your app has multiple widgets, pick one to appear in the quick action menu that appears when…
arcangel06
  • 164
  • 2
  • 12
12
votes
1 answer

3dtouch to present(peek without pop) UIView like contacts app

I'm trying to implement 3D Touch feature that presents a summary of information (like Peek). But I don't want that it pops. I just want to preview the information like contacts app does with contatcs: It only presents an UIView and doesn't deal…
Klevison
  • 3,342
  • 2
  • 19
  • 32
11
votes
3 answers

How do I replicate iOS 10's Apple Music "Peek and pop action menu"

iOS 10 has a feature I would like to replicate. When you 3D touch an album in the Apple Music app it opens the menu shown below. However unlike a normal peek and pop, it does not go away when you raise you finger. How do I replicate this?
Austin E
  • 823
  • 1
  • 9
  • 22
11
votes
2 answers

What is appropriate size of icon for 3D Touch shortcut item on home screen?

I couldn't find it on Icon and Image Sizes. But I mean, what is the size of following icons?
Bartłomiej Semańczyk
  • 59,234
  • 49
  • 233
  • 358
11
votes
1 answer

Is there a limit to how many UIApplicationShortcutItems you can have?

I want to add the new 3D/Force Touch feature (UIApplicationShortcutItem) to my app but I was wondering whether there is or isn't a limit to how many you can have on a single app? I've had a look on the documentation but don't see a mention of a…
DocAsh59
  • 400
  • 1
  • 6
  • 17
10
votes
1 answer

Instagram-like force touch popup modal

I'm trying to replicate force touch functionality of Instagram where 1) Put your finger on an image and it gets a little darker (hover effect, easy) 2) Press a little harder and a popup modal preview of the content appears 3) Press even harder and…
parliament
  • 21,544
  • 38
  • 148
  • 238
1
2 3
24 25