CareKit
CareKit copied to clipboard
Documentation on the role and purpose of view models?
This codebase mentions "view models" 72 times, and as far as I can tell there's no Apple documentation or articles on the architectural pattern. Maybe this is more the Developer Publications team's responsibility (I filed FB8894337), but it would be helpful if a conceptual explanation was written somewhere in this project, maybe in the README, GitHub wiki, or commented somewhere in the source code.
Are view models simply SwiftUI's equivalent of view controllers from UIKit, or is there a meaningful distinction? View controller types in this codebase are also referred to as view models, so any documented context around this would be appreciated.
Thank you!