I want the model to be passed in by the implementing developer and I want that to be mandatory.
let model: PagingTutorialModel
init(withModel model: PagingTutorialModel) {
self.model = model
super.init(nibName: nil, bundle: nil)
}
required init?(coder aDecoder: NSCoder) {
super.init(coder: aDecoder)
}
Error: Property 'self.model' not initialised at super.init call