Improving Your iOS Development Workflow with SwiftGen: A Practical Guide

Опубликовано: 29 Сентябрь 2024
на канале: Emmanuel Okwara
3,383
122

In this tutorial, we'll explore how to use SwiftGen to generate image and color tokens using assets in the xcassets catalog. With SwiftGen, you can access named images and colors in a type-safe way, which can save you time and reduce errors in your development process. We'll cover step-by-step instructions on how to install SwiftGen in your Xcode project and generate Swift code for image and color tokens. By the end of this video, you'll have a practical understanding of how SwiftGen can help you simplify resource management and improve the quality of your code when working with images and colors.

Resources:
Finished Project: https://github.com/EMacco/ios-tutoria...
SwiftGen: https://github.com/SwiftGen/SwiftGen

Say Hi on Social Media:
LinkedIn:   / ​​  
Instagram: https://instagram.com/its_macco?utm_m...
Twitter:   / its_macco  

Introduction 00:00
The Problem 00:28
The Solution 01:25
Setting Up Swift Gen 03:18
SwiftGen Config 04:30
SwiftGen Template 07:34
Build Phase 12:59
The Magic 15:52