Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
func applicationWillResignActive(_ application: UIApplication) {
application.shortcutItems = [
UIApplicationShortcutItem(
type: "DynamicAction",
localizedTitle: "Name",
localizedSubtitle: nil,
icon: UIApplicationShortcutIcon(type: .contact),
userInfo: nil
)]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment