From b44fd788b5c2984fe017a1f7091b3f8be4474524 Mon Sep 17 00:00:00 2001 From: relikd Date: Wed, 8 Apr 2020 22:34:44 +0200 Subject: [PATCH] Fix iOS9 row edit issue --- main/TVC Extensions/EditableRows.swift | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main/TVC Extensions/EditableRows.swift b/main/TVC Extensions/EditableRows.swift index 7895356..8872e25 100644 --- a/main/TVC Extensions/EditableRows.swift +++ b/main/TVC Extensions/EditableRows.swift @@ -19,7 +19,9 @@ extension EditableRows where Self: UITableViewController { let userInfo = editableRowUserInfo(index) return editableRowActions(index).compactMap { a,t in let x = UITableViewRowAction(style: a == .delete ? .destructive : .normal, title: t) { self.editableRowCallback($1, a, userInfo) } - x.backgroundColor = editableRowActionColor(index, a) + if let color = editableRowActionColor(index, a) { + x.backgroundColor = color + } return x } }