Is anyone having any luck using "Force Touch" in the simulator to test displaying the "Quick Action" list for your app?
-J
Is anyone having any luck using "Force Touch" in the simulator to test displaying the "Quick Action" list for your app?
-J
I assumed incorrectly that setting force touch pressure to deep press would be the trick.
I should've mentioned I tried that before posting.
I expected this to "just work" with force touch trackpads, but nope.
Ah, interesting. I was thinking the same thing but didn't have the means to test.
I would also like to know how to do this in the Simulator. Deep press doesn't work.
I ran the sample code supplied by apple for the previewing stuff with UIViewController in the 6s/6s+ simulators and I get the "unsupported device" error although the "Force touch pressure" option is available in the simulator for the 6s/6s+ but not the older devices (like you'd expect).
I wonder if there is support in the Xcode7.1 beta?
Edit: I just tried the Xcode7.1 beta, in the iOS 9.1 simulator, the "Force touch pressure" option is now disabled just like it is in Xcode7 GM on iOS 8 devices. I guess the option wasn't supposed to be activated in the iOS 9 simulator in the Xcode7 GM and that we need to use physical devices to test this feature (boo).
I'm trying the ApplicationShortcutsUsingUIApplicationShortcutItem example with XCode 7.1 beta and iPhone6S. The app runs fines, but there's no way to activate the "Touch Pressure" over the app icon (as it should do as de Readme). The "Fource Touch pressure" option stays grayed.
Its not greyed out for me, it just doesn't work (with the UIViewControllerPreviewDelegate APIs).. Did you make sure that you're using a 6s simulator?
I am using the Xcode 7 GM, running the iPhone 6s simulator. Under the Hardware menu, there is the Force Touch Pressure submenu, which contains 2 options: Shallow Press and Deep Press, but none of them work for me. It makes me think these options are for testing watch apps.
I found the official answer from Apple for our question: https://developer.apple.com/library/prerelease/ios/documentation/UserExperience/Conceptual/Adopting3DTouchOniPhone/index.html#//apple_ref/doc/uid/TP40016543
Scroll to the bottom, under the section Development Environment.
I just found a solution, that works for Quick Actions. It is not nice, but it works quite well - https://github.com/DeskConnect/SBShortcutMenuSimulator
To test this with Apples apps, this - http://stackoverflow.com/questions/9910366/what-is-the-bundle-identifier-of-apples-default-applications-in-ios - provides a lis of apples bundle identifiers. Maps and Contacts worked for me..
Too bad:
Amazing it works like a charm!
Funny thing, to show 3DTouch menu for new Apple News app you use (of course
echo 'com.apple.news' | nc 127.0.0.1 8000
Thank you it works great
Xcode 7.3 (beta5) + magic trackpad 2 (force) https://youtu.be/IhfjCW0DJwU