Я хочу использовать черный цвет для текста UIContextAction, так как я использую светлый цвет для фона. Еще лучше было бы использовать для его заголовка приписанный текст. Я попытался установить tableView.tintColor, но не изменил цвет текста смахивания. Любая идея приветствуется.
func tableView(_ tableView: UITableView, trailingSwipeActionsConfigurationForRowAt indexPath: IndexPath) -> UISwipeActionsConfiguration? {
let detailsAction = UIContextualAction(style: .destructive, title: NSLocalizedString("ActionShowDetails", comment: "")) {
action, view, completionHandler in
// handler code here
}
detailsAction.backgroundColor = UIColor.white
// I would like to use: detailsAction.textColor = UIColor.black
let result = UISwipeActionsConfiguration(actions: [detailsAction])
result.performsFirstActionWithFullSwipe = true
return result
}