not egor, but that'd function would apply the mode...
# squarelibraries
s
not egor, but that'd function would apply the model to the view hierarchy. it is important to note that the function name isn't referring to jetpack viewmodel.
Copy code
// not real code 
fun renderViewModel(model: FileBlockerViewModel) {
  toolbar.title = model.screenTitle
  recyclerViewAdapter.submitList(model.items)
}