Manage resources in Swifty way using SwiftGen

Muralidharan Kathiresan
Swift India
Published in
1 min readDec 14, 2018

The clean way of managing images, fonts, colors, string literals in iOS Xcode Project!

Many times it really pains to manage the assets and localization strings in the iOS projects, this blog is all about discussing a clean way of using them with the help of SwiftGen.

What is SwiftGen?

SwiftGen is a tool to auto-generate Swift code for resources of your projects, to make them type-safe to use.

They are many ways to integrate them, as usual, the simple and safe way I prefer is using cocoapods. We can simply add pod 'SwiftGen' to our Podfile

Podfile

if you are not familiar with cocoapods, I suggest you have a look here: Cocopods tutorial

Note: When we tap on the Pods/SwiftGen the folder will be empty, this is because of:

This article is updated and moved to my website here 😀 😀 😀

--

--

Muralidharan Kathiresan
Swift India

Crafting beautiful apps to make people’s life easier 😅