iOS MVVM My Concept#1
Apr 17, 2022
under iOS13
class viewModel: { var reloadCount: Int = 0 //ViewModel send to View => react the event
var reloadCollectionView: ( ()->() )?
//View call ViewModel => user touch the Buttom (event) func onTapCellButton() {
//changeDataFirst reloadCount += 1 self. reloadCollectionView?()
}}