From 29458fb03b5e72c91ab48fb10be05926925a815c Mon Sep 17 00:00:00 2001 From: Maurice Parker Date: Tue, 15 Jun 2021 21:33:23 -0500 Subject: [PATCH] Change to use destructive style on delete button. Fixes #3159 --- iOS/MasterFeed/MasterFeedViewController.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iOS/MasterFeed/MasterFeedViewController.swift b/iOS/MasterFeed/MasterFeedViewController.swift index 0e9a327b0..6233bf2b6 100644 --- a/iOS/MasterFeed/MasterFeedViewController.swift +++ b/iOS/MasterFeed/MasterFeedViewController.swift @@ -1318,7 +1318,7 @@ private extension MasterFeedViewController { alertController.addAction(UIAlertAction(title: cancelTitle, style: .cancel)) let deleteTitle = NSLocalizedString("Delete", comment: "Delete") - let deleteAction = UIAlertAction(title: deleteTitle, style: .default) { [weak self] action in + let deleteAction = UIAlertAction(title: deleteTitle, style: .destructive) { [weak self] action in self?.delete(indexPath: indexPath, feedID: feedID) } alertController.addAction(deleteAction)