|
I've just begun building what will be a pretty extensive application and want to use MVVM to organize things as it scales up. I'm having a lot of trouble understanding how to correctly bridge between a I have the main "user account"
In my
In my
So I push my I just want to follow the correct approach here, get the user's inputs on their form into the Thanks in advance and sorry for the long post. |
|
Okay. Will try and break it down (ps shorten number fields) Model (which you have)
ViewModel (This is where the logic for the view is eg network call etc)
Then View
|
|
Hey, you pretty much correctly understand the division between layers, except that you don't seem to use your
On UI you change Another thing is, that languageString can be of |
|
BUILD THE ULTIMATE PORTFOLIO APP Most Swift tutorials help you solve one specific problem, but in my Ultimate Portfolio App series I show you how to get all the best practices into a single app: architecture, testing, performance, accessibility, localization, project organization, and so much more, all while building a SwiftUI app that works on iOS, macOS and watchOS.
Sponsor Hacking with Swift and reach the world's largest Swift community!
This topic has been closed due to inactivity, so you can't reply. Please create a new topic if you need to.
All interactions here are governed by our code of conduct.
Link copied to your pasteboard.