Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to pick one from multiply widgets for home screen using 3d touch?

When I was using only one today widget it was very simple and was like this:

enter image description here

Now I added a second today widget to my app, and it is like this:

enter image description here

Why it disappeared? What is wrong? Shouldnt be there two today widgets? Can I decide what widget should be preferred here?

Apple says:

Choose a widget for the quick action list. If your app has multiple widgets, pick one to appear in the quick action menu that appears when someone applies pressure to your app icon on the Home screen using 3D Touch.

But where to do this? Is it user or developer site?

like image 470
Bartłomiej Semańczyk Avatar asked Nov 19 '16 13:11

Bartłomiej Semańczyk


1 Answers

Set bundle identifier of preferred widget to UIApplicationShortcutWidget key in info.plist of your app target.

enter image description here

like image 76
Bartłomiej Semańczyk Avatar answered Sep 30 '22 09:09

Bartłomiej Semańczyk