iOS MVVM My Concept#1

Mario tsai
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?()
}
}

--

--

Mario tsai

Major in physical education. Football referee. And high interest in looking the world through the numbers.