Matteo Manferdini
News
3 Key Strategies to Make SwiftUI Views More Reusable
Monolithic views are the most common issue in SwiftUI codebases, especially among inexperienced developers. While the declarative nature of SwiftUI makes it possible to quickly put together complex user interfaces, it also makes it easy to create massive
Read more
Report
The Myth of the MV pattern: Why SwiftUI developers just reinvented MVC
Since the introduction of SwiftUI, the MV pattern has been discussed in online forums about SwiftUI architecture. Its proponents sell it as a new pattern that aligns with how SwiftUI is intended to be used, while patterns like MVVM are allegedly at odds w
Read more
Report
Why VIPER and MVVM in SwiftUI are actually the same pattern: A lesson in architectural thinking
Architectural design patterns like VIPER might seem radically different from common ones like MVVM. However, upon deeper inspection, it turns out that these patterns share the same constitutive components. In this article, we will compare the MVVM and VIP
Read more
Report
From broken to testable SwiftUI navigation: The decoupled approach of MVVM with coordinators
SwiftUI provides several tools for managing navigation, and the introduction of NavigationStack and value-destination links improved programmatic navigation. However, in larger applications, vanilla SwiftUI navigation can pose challenges for testability,
Read more
Report
Is SwiftData incompatible with MVVM? The standard answer disregards some key principles driving SwiftUI's architecture
Some developers claim that MVVM is incompatible with SwiftUI. However, with a proper understanding of SwiftUI, it is possible to address any criticisms and eliminate the boilerplate code seen in many online blogs. In this article, we will explore some fun
Read more
Report
Why Dismissing View Models in SwiftUI is Stifling your App's Maintainability and Testability (And the Proven Principles for a Better Architecture)
If you've been working with SwiftUI, you've likely noticed that your views start pretty simple but then balloon into large, unmaintainable monoliths that are hard to preview and test. While there are several techniques to keep SwiftUI views modular and re
Read more
Report
How to Create and Combine SwiftUI Views Without Getting Lost in Deep Nesting and Complex Layouts
As you create increasingly complex SwiftUI views, you may feel your code is turning into a tangled mess of nested stacks, layout view modifiers, and conditionals. In this article, we'll explore how to leverage SwiftUI's full toolkit-beyond just stacks-to
Read more
Report
The Little-Known Root-View Technique for Improving MVVM in SwiftUI That Most Developers Overlook
On the Internet, you can find plenty of SwiftUI tutorials that dive straight into building user interfaces without much consideration for underlying architectural principles. While these examples can get you started, they often lead to a common pitfall: m
Read more
Report
MVVM in SwiftUI for a Better Architecture with Example
explore how MVVM fits into SwiftUI, how to leverage its advantages, and how it compares to Clean Swift and the Composable Architecture.
Read more
Report
Date decoding strategies in Swift with Examples
The JSONDecoder class uses several decoding strategies to decode dates encoded using different formats in JSON data.
Read more
Report
Show more news
