Gio Lodi 11/4/2020

How to make the View to ViewModel relationship clear

Read Original

This technical SwiftUI article demonstrates using Swift's nested type feature to explicitly define a ViewModel within its corresponding View. It argues this approach makes the View-ViewModel relationship semantically clear, reduces naming errors, and simplifies refactoring, while also acknowledging a downside regarding Xcode's Open Quickly search functionality.

How to make the View to ViewModel relationship clear

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week