as Parameter 4 I don't do it 4 Have to use conditionals anyway (indexPath.section and indexPath.row) 4 Cell UI Logic belongs in Data Source and Delegate methods to improve readability (My Opinion)
animated: true) let row = dataSource[indexPath.section].rows[indexPath.row] let identifier = row.identifier ?? String() if identifier == "custom_identifier" { // Do Something Here } }
identifier: String? var groupIdentifier: String? var text: String? var detail: String? var view: UIView? var userInfo = TableInfo() var object: Any? var height: CGFloat? init(type: TableRowType) { self.rowType = type } init(type: TableRowType, text: String?, detail: String?) { self.rowType = type self.text = text self.detail = detail } }