Swift Tech Notes

Swift & SwiftUI tutorials, best practices, and development guides.

Suggested Apps

Mindstorm App: Idea Generator to Think Better & Create 20 Ideas Fast

In a world where answers are everywhere, thinking is becoming a lost skill. Mindstorm: The Idea Generator App That Trains You to Think Better In a world where answers are everywhere, thinking is becoming a lost skill. You can ask ChatGPT anything, search on Google, or scroll endlessly—and you’ll always find answers. But here’s the

Swift

Boost Your Swift Code with Macros: Practical Examples and Use Cases

Swift Macros are a game-changer in Swift 5.9, bringing powerful metaprogramming capabilities to automate boilerplate code, enhance maintainability, and improve efficiency. In this guide, we’ll explore how Swift macros work, the different types available, and practical examples—such as auto-generating Codable conformance, enforcing thread safety, and logging function calls. Whether you’re looking to streamline your Swift code or unlock new levels of productivity, this post will give you everything you need to master Swift macros. 🚀

Swift

The Ultimate Guide to Swift Arrays, Sets, and Dictionaries

Swift provides powerful collection types—Arrays, Sets, and Dictionaries—for storing and managing data efficiently. Understanding their differences is key to writing optimized Swift code. In this guide, we’ll explore their characteristics, how to initialize and modify them, and when to use each. Whether you're working with ordered lists, unique elements, or key-value pairs, this post will help you master Swift collections with clear examples.

SwiftUI

Building a Star Wars App with SwiftUI + Combine (Part 3)

Learn how to implement seamless infinite scrolling and pull-to-refresh in your SwiftUI apps using Combine. This step-by-step tutorial Building a Star Wars App with SwiftUI + Combine Part 3 shows you how to enhance your Star Wars character list with modern scrolling behaviors while optimizing network requests. Perfect for Swift developers looking to add professional touches to their iOS applications without complex boilerplate code.

SwiftUI

Building a Star Wars App with SwiftUI + Combine (Part 2)

After dealing with pagination in the current implementation (async/await for the network call) I realize that using Combine not only simplifies a lot everything, but creates a wonderful use case to start using Combine as much as we can, so in this post we reborn it as Building a Star Wars App with SwiftUI & Combine.

SwiftUI

Building a Star Wars App with SwiftUI + Combine (Part 1)

This is a Work in Progress project that demonstrates the use of modern Swift development principles, including async/await for networking, the use of Dependency Injection with the use of the concept of Composition Root, local asset management, unit testing strategies, the MVVM UI Design Pattern and also shows clean ways of communicating changes to the team with small commits and clear messages.

Best Practices

How to TDD: FizzBuzz Kata with Swift

Do you know how to do TDD? In this video I show how to solve, step by step, the well known FizzBuzz Kata using Swift and Xcode. If you want to know more about the practice of TDD don't miss my other post: What is TDD and How does it work? Hope you enjoy the

SwiftUI

Responsive App Design Made Easy with Geometry Reader in SwiftUI

When designing user interfaces in SwiftUI, creating layouts that adapt seamlessly across different screen sizes is essential. Geometry Reader is a powerful yet often overlooked tool that helps achieve responsive designs by providing access to a view’s size and position within its container.

Swift

Unlocking the Power of SOLID Principles in Swift

Following SOLID Principles allows you to build better software. SOLID is a well known acronym created by Uncle Bob many years ago. It’s a set of rules that will help you understand how good software should be crafted.