fileprivate func configureCell tableView UITableView title String imag

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
fileprivate func configureCell(_ tableView: UITableView, title: String, image: UIImage?, withSeparator: Bool) -> HelpMenuItemTableViewCell {
let cell = tableView.dequeueReusableCell(withIdentifier: R.reuseIdentifier.helpMenuItemTableViewCellID, for: indexPath)!
cell.lblTitle.text = title
if let image = image {
cell.imgLogo.image = image
}
cell.separatorView.isHidden = !withSeparator
if !withSeparator {
cell.addShadow(shadowPath: .bottom)
}
return cell
}