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:
- Design-time support, i.e. use Lightning icons with Xcode storyboards
- Doctype icons, which aren't currently part of the Lightning Design System for iOS
- Salesforce Lightning Design System for iOS
- Xcode, version 6.4
- Swift 1.2
Check out Main.storyboard
for examples
-
Add a UIView component to your storyboard
-
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
-
Enter the icon's name -- as shown under each icon
-
Resize or recolor the icon, if you must :-)
See screenshots below:
@mike4aday or open an issue