Resources, Colors & Typography
Guide for using resources, images, icons, colors and fonts in SwiftSail
Prerequisites
To efficiently work with resources, colors and fonts, SwiftSail is using a tool called SwiftGen
to generate the code for simple use of images and othe resources.
To install Swiftgen make sure to run these commands
Resources (images and colors)
Images are located in Presentation/Resources
folder. To add new image or icon, add the file to Images.xcassets
file and run swiftgen
command.
SwiftSail is ready to use system or custom fonts. To add your custom font, you have to add the file to
Presentation/Resources/Fonts
folder and run swiftgen
command.
Colors
SwiftSail is designed to use either system colors or custom colors added to Colors.xcassets
file.
If you don't have swiftgen
installed, make sure to follow this guide first.