Ternary Operator ===> value = condition ? (true) : (false)
sample code
if item.done == true { cell.accessoryType = .checkmark } else { cell.accessoryType = .none } cell.accessoryType = item.done ? .checkmark : .none