/SLDSIcons

Salesforce Lightning Design System Icons for iOS

Primary LanguageSwift

Salesforce Lightning Design System Icons for iOS

Create the world's best enterprise app experiences with the Salesforce Lightning Design System (SLDS)

The code in this repository builds upon the Salesforce Lightning Design System for iOS and adds:

  1. Design-time support, i.e. use Lightning icons with Xcode storyboards
  2. Doctype icons, which aren't currently part of the Lightning Design System for iOS

Prerequisites

Using Lightning Icons in Your Xcode Project

Check out Main.storyboard for examples

  1. Add a UIView component to your storyboard

  2. Select the custom class according to the Lightning icon category

  • SLDSActionIconView for action icons
  • SLDSCustomIconView for custom icons
  • SLDSDoctypeIconView for doctype icons
  • SLDSStandardIconView for standard icons
  • SLDSUtilityIconView for utility icons
  1. Enter the icon's name -- as shown under each icon

  2. Resize or recolor the icon, if you must :-)

See screenshots below:

Select the custom class for the Lightning icon

Enter the Lightning icon's name

Lightning doctype icons

Found a Bug or Have a Question?

@mike4aday or open an issue