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
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With