How to modularize an iOS app with SPM packages
This is the third part of a mini series where I share lessons from my day job. This time it's all about how I take a repo where all its code is in the main iOS target and modularize it using local SPM packages. In this way, I can easily: reuse code in different targets work isolated in modules with faster speed of iteration have clear boundaries between modules of the app The full sample code from this video can be found in: Initial state: https://github.com/fespinoza/Youtube-... End state: https://github.com/fespinoza/Youtube-... #swiftUI #spm #swift #iOS #architecture #modularization *Amazon Links are affiliate links -------------------------------- 👋 You can find me in -------------------------------- BlueSky: https://bsky.app/profile/fespinozacas... Github: https://github.com/fespinoza BuyMeACoffee: https://buymeacoffee.com/craftingswift -------------------------------- 📸 Camera Gear -------------------------------- Camera: Sony A6700 (https://amzn.to/4iYkLYR) Lens: Sigma 16mm 1.4 for Sony E (https://amzn.to/4bYAmFz) Elgato Prompter (https://amzn.to/3A2ZLiY) Key light: Godox ML100Bi (https://amzn.to/41YCW9Y) Mic #1: DJI mic 2 + DJI lavalier mic (https://amzn.to/4hL8F4m) Mic #2: Elgato Wave DX + Elgato Wave XLR (https://amzn.to/4hjvbSR) M1 Max Macbook Pro (https://amzn.to/3NG5ZIv) Screen Recording: CleanShot X -------------------------------- 📖 Reading Tools -------------------------------- I have an affiliate link, but I honestly recommend trying readwise. I like how helps you remember what you read. The reader app is excellent for articles too! https://readwise.io/craftingswift/ It gives you an extra month of your trial period -------------------------------- 🏷️ Chapters: -------------------------------- 00:00 - 1. Intro 00:54 - 2. Why Divide 01:50 - 3. How do we divide 03:57 - 4. Example 04:15 - 4.1. The Plan 05:52 - 4.2. Extract Base Models 07:11 - 4.3. Networking Package 07:49 - 4.4. Navigation 09:31 - 4.5. Feature Package 10:48 - 5. Conclusion

Code-along: Start building with Swift and SwiftUI | Meet with Apple

Birds Singing in a Tranquil Forest 🌳 Nature Sounds for Deep Sleep and Calm Mind

A Tale of Modular Architecture with SPM Swift Package Manager | Swift Heroes 2024 Talk

WWDC25: Code-along: Elevate an app with Swift concurrency | Apple

Swift Concurrency Explained with Matt Massicotte

Intro to SwiftData - Model, Container, Fetch, Create, Update & Delete

What's NEW at✨SAM'S CLUB✨ + June 2026 INSTANT SAVING!!

Advanced Navigation for SwiftUI apps

How to Make an App (Xcode 26) FULL TUTORIAL

She Was Trying to Cut It With Scissors and The Grass Was Taller Than My Mowers

After My Wife Passed Away, My Daughter-in-Law Smiled At The Inheritance Meeting!! | Calm Dad Stories

ASMR Addictive Fast Tapping Collection For Deep Sleep & Anxiety Relief (No Talking) — 2.5 Hours

Stop Prompting Claude. Use Karpathy's Method Instead.

ASMR Mysterious Growth ❓ CLOSE Medical Exam 👩⚕️Professional Doctor Facial Examination

Play: The Secret Weapon for iOS Devs & Designers

Getting started with iOS modularization by Luka Terzić

How to Make a Swift Package! (Xcode)

Design Uber Eats - iOS System Design Interview

Model Context Protocol (MCP) Explained for Beginners: AI Flight Booking Demo!

