Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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 widgets from the 3D touch quick actions using the Info.plist or some other method?

Thanks

3D touch quick actions and widgets screenshot

like image 548
Troy R Avatar asked Sep 23 '16 12:09

Troy R


People also ask

Can widgets be hidden?

In the Screen Outline panel, which provides the hierarchical representation of the screen, select the widget that you want to hide. Select the Hide check box. Click Apply to view your changes. Note: If you hide any widget, and later run a programmatic logic to show it, the hidden widget is displayed on the screen.

How do you edit quick actions on Iphone?

To enable Quick Actions, tap the gear icon in the top left of the main view to enter settings, then tap the “Quick Actions” row. From here you can add, delete, and rearrange actions.


1 Answers

So, if you have multiple homescreen widgets, you can set UIApplicationShortcutWidget to determine which one should be shown. I haven't been able to find a way to disable them altogether from appearing in the 3d touch shortcut menu.

One option you may be able to try (this works for me on the simulator) is to set this value in your Info.plist to the value of nil.

<key>UIApplicationShortcutWidget</key>
<string>nil</string>

Your other option is to create a different widget, with more useful functionality, perhaps such as showing the currently running timer, or other stats.

like image 193
Nick Avatar answered Oct 05 '22 00:10

Nick