Join Tammy Coron for an in-depth discussion in this video Adding icons to quick actions, part of iOS 9 3D Touch Quick Start.
- [Voiceover] Icons are a great way…to make your quick actions look a little nicer.…When you wish to add icons to your static quick actions,…you may use the keys UIApplicationShortcutItemIconType…or UIApplicationShortcutItemIconFile.…The former represents the type of icon to display,…using the system-provided library,…while the latter represents the name of an image file…from your app bundle.…Let's head over to Xcode to see how this works.…
For this demo, we'll be using the 3D Touch example project…included with the exercise file for this chapter.…In the Info.plist, under the UIApplicationShortcutItems,…within each item, I added a new key.…For the first item, I added the…UIApplicationShortcutItemIconType, and I specified a type.…In this case, it's the magnifying glass, the search icon.…In the next item, I've added a new key,…UIApplicationShortcutItemIconFile,…and for that, I specified the string Quick-Action.…
Now that value is coming from an asset that I added earlier.…You can see here that the name of the asset is Quick-Action.…
Released
6/30/2016In this course, Tammy Coron walks through the 3D Touch API. She shows how to add static and dynamic quick actions, which allow you to display shortcuts for app-specific tasks. She also covers peek—for displaying live previews of items—and pop, which opens a detailed version of the peek view. Last but not least, she shows how to implement custom actions using UITouch's new properties: force and maximumPossibleForce.
- Accessibility and 3D Touch
- Checking for 3D Touch availability
- Understanding static vs. dynamic actions
- Working with peek and pop views
- Working with UITouch objects
Share this video
Embed this video
Video: Adding icons to quick actions