3dtouch

UITouch Force on touchesBegan

回眸只為那壹抹淺笑 提交于 2021-01-29 05:23:04
问题 3D touch seems really cool and I wanted to see how it would work in a musical context. I was reading a bit about 3D touch and it seems like the force property almost always reads as 0 when a touch begins ( touchesBegan method). How do I get a usable force when a touch begins because even if I'm pressing with maximum "force" I'm still getting that initial 0? I was thinking about just approximating a value within a time frame but that would involve me moving the touch. I just want a usable

WKWebview allowsLinkPreview to false breaks text selection

十年热恋 提交于 2020-06-12 06:17:33
问题 We have an app that uses WKWebview, but sets allowsLinkPreview to false because we don't want link preview behavior. It seems that starting with iOS 13.4, on devices that don't have 3D touch functionality (older devices and newer iphone models), setting allowsLinkPreview to false also disables all text selection in the page! For our app, text selection is critically important. I came up with this theory reading between the lines in the documentation: In iOS this property is available on

WKWebview allowsLinkPreview to false breaks text selection

≡放荡痞女 提交于 2020-06-12 06:11:30
问题 We have an app that uses WKWebview, but sets allowsLinkPreview to false because we don't want link preview behavior. It seems that starting with iOS 13.4, on devices that don't have 3D touch functionality (older devices and newer iphone models), setting allowsLinkPreview to false also disables all text selection in the page! For our app, text selection is critically important. I came up with this theory reading between the lines in the documentation: In iOS this property is available on

WKWebview allowsLinkPreview to false breaks text selection

喜你入骨 提交于 2020-06-12 06:11:10
问题 We have an app that uses WKWebview, but sets allowsLinkPreview to false because we don't want link preview behavior. It seems that starting with iOS 13.4, on devices that don't have 3D touch functionality (older devices and newer iphone models), setting allowsLinkPreview to false also disables all text selection in the page! For our app, text selection is critically important. I came up with this theory reading between the lines in the documentation: In iOS this property is available on

Can you use 3D Touch on widgets?

拈花ヽ惹草 提交于 2020-01-13 14:59:10
问题 I am thinking about creating an iOS app that will have a notifications center extension. However I need my app to use 3D Touch on the extension within the Notification Center, is it possible? 回答1: To my knowledge, you cannot. From apple documentation, it appears the feature is only available in app and on the homescreen: A user can now press your Home screen icon to immediately access functionality provided by your app. Within your app, a user can now press views to see previews of additional

Can you use 3D Touch on widgets?

馋奶兔 提交于 2020-01-13 14:59:02
问题 I am thinking about creating an iOS app that will have a notifications center extension. However I need my app to use 3D Touch on the extension within the Notification Center, is it possible? 回答1: To my knowledge, you cannot. From apple documentation, it appears the feature is only available in app and on the homescreen: A user can now press your Home screen icon to immediately access functionality provided by your app. Within your app, a user can now press views to see previews of additional

Instagram-like force touch popup modal

柔情痞子 提交于 2020-01-03 07:24:07
问题 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 it expands the modal to full screen I'm having problems with Ionic 4/Cordova "3d touch" plugin where it doesn't register the force-touch if I regular-touch the screen first. In order words, step 2 above does not trigger the force touch when

Do something with Quick Action

≡放荡痞女 提交于 2019-12-25 17:45:05
问题 Sorry if this is a dumb question, Setting up a 3D Touch quick action. I put everything into the .plist file and I had to put this into my AppDelegate.swift file AppDelegate.swift func application(_ application: UIApplication, configurationForConnecting connectingSceneSession: UISceneSession, options: UIScene.ConnectionOptions) -> UISceneConfiguration { // Called when a new scene session is being created. // Use this method to select a configuration to create the new scene with. // Grab a

UIPreviewAction to Mail From Peek

為{幸葍}努か 提交于 2019-12-24 14:50:09
问题 I am working on implementing Peek and Pop in my app, along with UIPreviewActions to it. I have my PreviewView all set up, and both Peek and Pop work great, my issue is with adding UIPreviewActions to it. Of course, you have to put the UIPreviewAction method within the preview controller, so how do you get it to then dismiss that view, and open the view within its parent controller? I have in the PreviewController: - (NSArray*)previewActionItems { // setup a list of preview actions

Implement 3D touch on multiple collection views or table views in the same view controller

谁说我不能喝 提交于 2019-12-24 07:20:54
问题 I would like to have 3D touch on both of the collection views of my app(Only the "Peek" functionality). They are both contained in the same view controller. No matter what syntax I try it always shows the image and text for the a cell in the first collectionview, even if I choose a cell in the second collection view. How do I separate these so that only one happens specifically for the collectionview cell I have selected? Here is how I am implementing the 3D touch functionality: I put this in