Questions tagged [uiapplicationshortcutitem]

Use this tag for questions related to UIApplicationShortcutItem, an application shortcut item, also called a Home screen dynamic quick action, specifies a user-initiated action for your app.

Quoting the ref page:

On a device that supports 3D Touch, a user invokes the quick action by pressing your app's icon on the Home screen and then selecting the quick action’s title. Your app delegate receives and handles the quick action.

and/or are usually found along with this tag, so you might as well consider using them.

38 questions
31
votes
2 answers

How do I specify a custom icon for a static UIApplicationShortcutItem in my iOS 9 App?

I'm currently implementing home screen Quick Actions for my iOS 9 app using 3D Touch. I have several actions using the existing System icons from the defined UIApplicationShortcutIconType enum. An Example:
Chris Allwein
  • 2,433
  • 1
  • 20
  • 22
16
votes
3 answers

Use SF Symbols system image for static UIApplicationShortcutItem

When specifying home screen quick actions, UIApplicationShortcutItems, in your Info.plist, is there a way to use a system image from SF Symbols? The docs noting the available iOS keys doesn't specify a key to do this, besides specifying one of the…
Jordan H
  • 45,794
  • 29
  • 162
  • 306
11
votes
1 answer

Share App application shortcut [UIApplicationShortcutIconTypeShare]

I've seen a lot of apps use the UIApplicationShortcutIconTypeShare application shortcut to share their app right from the home screen. It launches a UIActivityViewController right from the home screen without opening the app. How do you do that?
8
votes
3 answers

UIImage from UIApplicationShortcutIcon

There are some great "Quick Action Icons" available at https://developer.apple.com/ios/human-interface-guidelines/graphics/system-icons/. Is it possible to make a UIImage from one of these UIApplicationShortcutIcons to use on, say, a UIButton. For…
alex_lewis
  • 2,491
  • 3
  • 17
  • 47
3
votes
1 answer

How to add more than 4 quick action items in UIApplicationShortcutIcons(3D touch) in iOS Application

I am working on 3D touch features in iOS. I want to add more than 4 shortcut items. I go through apple documentation which states that iOS 9 displays up to four Home screen quick actions for your app But the soundhound application is showing 5…
Sahil Mahajan
  • 3,786
  • 2
  • 26
  • 42
2
votes
0 answers

Dynamic UIApplicationShortcutItems reseting when iOS Language Preferences are changed

My app is using dynamic UIApplicationShortcutItems, allowing the user to choose their own custom shortcuts. When the OS language preference is changed, this list is being reset, removing all of the shortcuts and requiring the user to recreate their…
kbrady
  • 61
  • 4
2
votes
1 answer

Update UIApplicationShortcutItem from extension

I am building a Today Extension to an app, and it works great to modify my application data. But now my dynamic UIApplicationShortcutItems are out of sync. I can't access UIApplication.shared from my extension. Is there a way to ask the app to…
Henrik
  • 3,449
  • 22
  • 42
2
votes
2 answers

AppDelegate function for UIApplicationShortcutItem not being called in Swift 3 / Xcode 8 beta 6

The Swift 3 converter changed this (perfectly functioning) line: func application(application: UIApplication, performActionForShortcutItem shortcutItem: UIApplicationShortcutItem, completionHandler: (Bool) -> Void) { to this: func application(_…
2
votes
1 answer

Navigating to a ViewController from AppDelegate triggered by UIApplicationShortcutItem

In my application, the first view that is launched is controlled by RootUIViewController. Now the user can tap on any of the buttons on this view and then segue to a view controlled by LeafUIViewController. Each button points to this same view, with…
rgamber
  • 5,231
  • 8
  • 48
  • 92
2
votes
1 answer

how to control UIApplicationShortcutItems title & icon location

How can control this? I have try to change the location in the plist.
pathfinder
  • 61
  • 1
  • 6
1
vote
1 answer

Is there a way to not open the splash screen/app when launching a shortcut action in iOS?

func application(_ application: UIApplication, performActionFor shortcutItem: UIApplicationShortcutItem, completionHandler: @escaping (Bool) -> Void) { if shortcutItem.type == "com.xyz.test.tests.firstAction" { …
1
vote
1 answer

How to copy to the UIPasteBoard from the Quick Actions menu without entering the app?

Is it possible to directly copy a value from a shortcut item without entering the app? I want to do something similar to Apple's Calculator App:
1
vote
1 answer

Application Shortcut Open TableView Row

I have four application shortcuts set up when force pressing my app icon. I have a tab bar controller with navigation controllers each with table view controllers as the root view controller for the first two tabs. For the shortcuts, how can I open…
raginggoat
  • 3,450
  • 9
  • 42
  • 99
1
vote
2 answers

Shortcut Items, Quick Actions 3D Touch swift

I am for some reason having some troubles figuring out the Shortcut Items in my app. I have followed all the tutorials and I believe that I have done everything right; however, it is acting really weird. The problem is that when you completely close…
Jaqueline
  • 435
  • 1
  • 5
  • 21
1
vote
1 answer

ApplicationShortcuts, is there any way to not open the app and only execute some actions such as Play/Pause?

I have an audio app and I want to control play/pause with ApplicationShortcutItem directly, but I don't want to open the app. Is it possible?
BollMose
  • 1,844
  • 2
  • 21
  • 33
1
2 3