Explorar el Código

EditController: Alerts: Set style for cancel actions

Soomin Lee hace 5 años
padre
commit
008412fb3a
Se han modificado 1 ficheros con 3 adiciones y 2 borrados
  1. 3 2
      Sources/EditController.swift

+ 3 - 2
Sources/EditController.swift

@@ -83,7 +83,7 @@ private extension EditController {
         })
 
         let cancelButton = UIAlertAction(title: NSLocalizedString("BUTTON_CANCEL", comment: ""),
-                                         style: .default)
+                                         style: .cancel)
 
 
         let confirmAction = UIAlertAction(title: info.confirmActionTitle, style: .default) {
@@ -182,7 +182,8 @@ extension EditController: EditToolbarDelegate {
             }
         }
 
-        let cancelButton = VLCAlertButton(title: NSLocalizedString("BUTTON_CANCEL", comment: ""))
+        let cancelButton = VLCAlertButton(title: NSLocalizedString("BUTTON_CANCEL", comment: ""),
+                                          style: .cancel)
         let deleteButton = VLCAlertButton(title: NSLocalizedString("BUTTON_DELETE", comment: ""),
                                           style: .destructive,
                                           action: {