Example Usage
suggest changemodels and myCollectionView or myTableView must already exist. nameOfClass is not a Swift standard-library property. It has to come from UIPhoenix.
// init
mUIPheonix = UIPheonix(with:myCollectionView)
mUIPheonix = UIPheonix(with:myTableView)
// connect model-view
mUIPheonix.setModelViewRelationships([MyModel.nameOfClass:MyView.nameOfClass])
// add models for the UI
models.append(SimpleButtonModel(id:1, title:"Hello World!"))
// render, update UI
mUIPheonix.setDisplayModels(models)
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents