I want to create a table that will contain the icons on the left. For example, as in the iPhone settings. So far, no results. Any ideas?
[UI Sketch] Tables with icons
Could you show what you have tried so far ?
Is it a standard cell (Title / subtitle…) ?
You can simply add this in cellForRowAt
Is it a standard cell (Title / subtitle…) ?
You can simply add this in cellForRowAt
Code Block func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { let cell = tableView.dequeueReusableCell(withIdentifier: "CellItem", for: indexPath) // initialise what needs to be // either set your own image (must be the right size to fit ; of course, you should select image for each indexPath, for instance by storing image names in an array and select the right element cell.imageView?.image = UIImage(named: "Some image.png") or use systemName image if #available(iOS 13.0, *) { cell.imageView?.image = UIImage(systemName: "sunrise") // Just an example cell.imageView?.tintColor = .systemRed // If you want to set a specific color } else { // Fallback on earlier versions }