Example Usage

suggest change

models 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)

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents