My code
func tableView(_ tableView: UITableView, commit editingStyle: UITableViewCell.EditingStyle, forRowAt indexPath: IndexPath) {
if editingStyle == .delete {
self.tmakeAlertDialog(title: "Whats up".localized(),
message: "Are you positive you wish to delete the sound?".localized(),
actions: [.init(title: "Yes".localized(), style: .default, handler: { _ in self.deleteSoundAction(indexPath)}),
.init(title: "No".localized(), style: .default)]) { _ in }
}
}
My TableView
I wish to around the delete button.
Rounding corners of delete button in UITableViewCell
I attempted this reply however sadly it did not work.