Questions tagged [force-touch]

Force Touch is a feature in Apple Watch that allows depth sensitivity when tapping. Use this when writing Apple Watch apps using this feature.

Force Touch gives the tiny Apple Watch much more usability despite its small size. Pressing harder, a "force touch," allows for a different action than a regular tap.

Not to be confused with , used in the iPhone 6s and 6s Plus. It adds another degree of sensitivity.

25 questions
8
votes
2 answers

Force Touch/ 3D Touch in XCUITest

I am trying to add a force touch automation for an iOS App. I looked into the Apple docs for the same problem but cannot find anything useful. We can do the force touch from the assistive touch but I am looking for something as simple as the tap()…
Kushal Jogi
  • 265
  • 5
  • 15
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
3
votes
2 answers

How to implement Peek & Pop Feature of specific row of a table manually via code?

Goal I'm trying to add the peek and pop feature to my table row
code-8
  • 54,650
  • 106
  • 352
  • 604
3
votes
0 answers

Is it possible to use a force touch (3D Touch) with the standard controller UIImagePickerController?

I try by force pressing in UIImagePickerController to get the image, but instead of calling the didFinishPickingMediaWithInfo I get nothing. Additional info: When I try to force pressing on the photo, I get a messages: "*** error reading settings…
Mikhail S
  • 3,338
  • 3
  • 21
  • 34
3
votes
1 answer

3d Touch Not Available on iPhone 6s+

I am trying to add 3d touch into my application. I am trying to enable the user to use force touch on a UITableViewCell, like shown in this project. I am running this code: if traitCollection.forceTouchCapability == UIForceTouchCapability.Available…
Pranav Wadhwa
  • 7,666
  • 6
  • 39
  • 61
3
votes
1 answer

Pick & pop force touch gesture not working sometimes

I have a view controller which registers for previewing in viewDidLoad method: - (void) viewDidLoad { [super viewDidLoad]; if ([self.traitCollection respondsToSelector:@selector(forceTouchCapability)] && …
mixtly87
  • 1,675
  • 15
  • 32
2
votes
0 answers

iOS WKWebView Peek and Pop on an Image

Lately I have been trying to get Peek And Pop to work with my WKWebView. The use case I use it for is a RichText comment section in my App. But because there is already done plenty of customization done to the WebView I setup a minimal reproducible…
Jackpotsvr
  • 21
  • 3
2
votes
2 answers

Any way to disable the force touch detection for my Apple WatchKit 2 app

Whenever I press somewhat hard on my Apple WatchKit 2 app the view compresses as it attempts to detect a force touch. Is there any way to disable this? This additional detection is affecting the accuracy of it handling the numerous other buttons I…
Keith Adler
  • 20,880
  • 28
  • 119
  • 189
2
votes
1 answer

Can I add feedback (notch) to a gesture on iOS using 3D Touch?

With Force Touch on OS X applications can provide a feedback or a notch (haptics/taptics?) like Apple's example describes: Map rotation: You'll feel a notch when you rotate the compass to north in…
Steve Moser
  • 7,647
  • 5
  • 55
  • 94
1
vote
0 answers

Implementing 3D-Touch with swift on View

Im experimenting with the 3D-Touch/Force-Touch these days and Im new to iOS Development. If I search for 3D-Touch in Swift - I always find something about Peek & Pop or Quick-Actions on Home Screen. I want to ask, if its possible to initiate a…
1zz0
  • 264
  • 3
  • 18
1
vote
1 answer

NSTextField - Allow editing only with force-touch, Cocoa

I am developing a OSX app with Force touch support. As default, if you set an NSTextField's behaviour editable, user can click two times or use force touch to start editing. I want to allow user start editing only with Force touch. How can I…
emreoktem
  • 2,409
  • 20
  • 36
1
vote
1 answer

Display a home screen action without launching the app

I'm trying to present a sharing UIActivityViewController from a 3D touch menu action on the app icon on home screen, I'm doing the following : -(void)application:(UIApplication *)application performActionForShortcutItem:(UIApplicationShortcutItem…
1
vote
1 answer

Using 3D touch in Sprite Kit to measure pressure

In my main app I'm trying to use 3D touch to activate a bullet fireing, but the results seem to be very inconsistant and it didn't always give my the write results. Also my iPhone 6S was crashing when I used this code, This is the code I used for a…
1
vote
1 answer

Find out if Mac is Force Touch - capable

Is it possible to find out if a Mac is Force Touch capable - either via a built-in Trackpad, like the new MacBook, or a Bluetooth device like the Magic Trackpad 2? I'd like to present preferences specific to Force Touch if the Mac is Force Touch…
m.gansrigler
  • 185
  • 2
  • 9
0
votes
1 answer

Has Apple deprecated iPhone 3D touch in Swift?

I made a game 2 years ago using the 3D touch feature in Swift because it was pretty new but I've never released the game because I got a new contract. Now I have time I want to release it but the code doesn't work any more. (3D touch custom actions,…
Matt
  • 147
  • 1
  • 13
1
2