Stack Explorer

MVVM

UI

Model-View-ViewModel with data binding

Principles

View only displaysViewModel exposes data and commandsData binding connects View and ViewModel

When to use

Apps with data binding (WPF, SwiftUI, Android), UI testing is important

When not to use

Simple apps, without binding support

Pros and Cons

Ventajas

  • + Testable without UI
  • + Clear separation
  • + ViewModel reusability

Desventajas

  • - Binding overhead
  • - Complex binding debugging

Related Technologies

Frameworks and Libraries

Related Patterns

Related Architectures