mirror of
https://github.com/zhigang1992/ReactiveViewModel.git
synced 2026-01-12 22:51:31 +08:00
Remove "user input" responsibility of VM
VMs do respond to the user, but not through any direct IBAction or responder chain facility, so it's probably clearer to just leave it out.
This commit is contained in:
@@ -50,11 +50,10 @@ where presentation _behavior_ goes.
|
||||
|
||||
For example, a view model might handle:
|
||||
|
||||
* Kicking off network or database fetches
|
||||
* Kicking off network or database requests
|
||||
* Determining when information should be hidden or shown
|
||||
* Date and number formatting
|
||||
* Localization
|
||||
* Acting upon the user's input
|
||||
|
||||
However, the view model is not responsible for actually presenting
|
||||
information or handling input — that's the sole domain of the view layer. When
|
||||
|
||||
Reference in New Issue
Block a user