You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PostsViewModel is exposing to the view the Post mode as output: let selectedPost: Driver<Post>
My question is: PostsViewController knows Post data model which means that the view knows the model.
As far as I understand MVVM architecture the UI (view) doesn't need to know the model
(Post).
What do you think? is there a place to change the selectedPost parameter to be: let selectedPost: Driver<PostViewModel> ?
The text was updated successfully, but these errors were encountered:
PostsViewModel
is exposing to the view the Post mode as output:let selectedPost: Driver<Post>
My question is:
PostsViewController
knowsPost
data model which means that the view knows the model.As far as I understand MVVM architecture the UI (view) doesn't need to know the model
(Post).
What do you think? is there a place to change the
selectedPost
parameter to be:let selectedPost: Driver<PostViewModel>
?The text was updated successfully, but these errors were encountered: