I have 5 items defined in my plist. It only showed 4. ♂️
I've tried in Simulator
and the actual iPhone XS Max
.
<array>
<dict>
<key>UIApplicationShortcutItemIconFile</key>
<string>home</string>
<key>UIApplicationShortcutItemTitle</key>
<string>Home</string>
<key>UIApplicationShortcutItemType</key>
<string>homePressed</string>
</dict>
<dict>
<key>UIApplicationShortcutItemIconFile</key>
<string>security</string>
<key>UIApplicationShortcutItemTitle</key>
<string>Security</string>
<key>UIApplicationShortcutItemType</key>
<string>securityPressed</string>
</dict>
<dict>
<key>UIApplicationShortcutItemIconFile</key>
<string>alert</string>
<key>UIApplicationShortcutItemTitle</key>
<string>Alert</string>
<key>UIApplicationShortcutItemType</key>
<string>alertPressed</string>
</dict>
<dict>
<key>UIApplicationShortcutItemIconFile</key>
<string>network</string>
<key>UIApplicationShortcutItemTitle</key>
<string>Network</string>
<key>UIApplicationShortcutItemType</key>
<string>networkPressed</string>
</dict>
<dict>
<key>UIApplicationShortcutItemIconFile</key>
<string>settings</string>
<key>UIApplicationShortcutItemTitle</key>
<string>Settings</string>
<key>UIApplicationShortcutItemType</key>
<string>settingsPressed</string>
</dict>
</array>
Result
Am I doing anything wrong ?
According to Apple:
That is, the system dictates the maximum number of items displayed and picks the first n items you provide for display.
I can't find anywhere the exact limit is shown, but I havn't seen any app have more than 4 items + the "share" item.