Skip to content

SF Symbol Icon Template (iOS 15) for iOS Action Extension, Quick Action Shortcut and TabBar.

License

Notifications You must be signed in to change notification settings

xapp/SFSymbol-Icon-Template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SFSymbol Icon Template (iOS 15)

SFSymbol-Icon

SFSymbol Icon Template produces an icon, which can be used for:

  • iOS Action Extension (iOS 15 only);
  • Quick Action Shortcut;
  • TabBar.

While any custom SF Symbol is supported by iOS 15, this template contains special "Guides", which draw a pixel perfect 32pt icon.

Template

How to use Template:

  1. Open template in Sketch;
  2. Replace "Icon" with your icon;
  3. Export icon in SVG format.

How to add icon to Xcode:

  1. In Xcode, select Assets file;
  2. Press "+" > "Symbol Image Set";
  3. Add exported icon.

Setup: iOS Action Extension

Add properties to Info.plist of Action Extension.

File link: https://github.com/xapp/SFSymbol-Icon-Template/blob/main/InfoPlist/ActionExtension_Info.plist ActionExtension_InfoPlist

Setup: Quick Action Shortcut

a) Dynamically:

UIApplicationShortcutItem(type: "actionType",
                          localizedTitle: "Title",
                          localizedSubtitle: nil,
                          icon: UIApplicationShortcutIcon(templateImageName: "symbol.icon"),
                          userInfo: nil)

b) Statically, add properties to Info.plist, note: use "UIApplicationShortcutItemIconFile" key instead of "UIApplicationShortcutItemIconSymbolName"

File link: https://github.com/xapp/SFSymbol-Icon-Template/blob/main/InfoPlist/QuickAction_ShortcutItem_Info.plist QuickAction_InfoPlist

Setup: TabBar Icon

a) Set icon in Storyboard;

b) Set image property of tabBarItem:

UITabBarItem(title: "Dynamic",
             image: UIImage(imageLiteralResourceName: "symbol.icon"),
             selectedImage: UIImage(imageLiteralResourceName: "symbol.icon"))

Self Promo

Download X.app: https://apps.apple.com/app/apple-store/id1533525753?pt=119131575&ct=SFSymbol-Icon-Github-Sponsor&mt=8