From 455dd2021fdd4e173f5579f9e3e4299e071dc7eb Mon Sep 17 00:00:00 2001 From: Ramiro Ramirez Date: Thu, 12 Jan 2017 12:30:05 +0100 Subject: [PATCH] Minor Improvement --- PasscodeLock/PasscodeLockViewController.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/PasscodeLock/PasscodeLockViewController.swift b/PasscodeLock/PasscodeLockViewController.swift index b607dc86..a5bfc561 100644 --- a/PasscodeLock/PasscodeLockViewController.swift +++ b/PasscodeLock/PasscodeLockViewController.swift @@ -293,6 +293,7 @@ public class PasscodeLockViewController: UIViewController, PasscodeLockTypeDeleg let titleForButton = ((self.passcodeLock.state.isCancellableAction == true) ? cancelButton : (self.stringsToShow?.delete ?? localizedStringFor("Delete", comment: ""))) self.cancelDeleteButton?.setTitle(titleForButton, forState: .Normal) self.cancelDeleteButton?.setTitleColor(self.customTintColor, forState: .Normal) + self.cancelDeleteButton?.setTitleColor(self.customTintColor?.colorWithAlphaComponent(0.5), forState: .Disabled) self.cancelDeleteButton?.titleLabel?.font = self.font if (self.passcodeLock.isPincodeEmpty == true && self.passcodeLock.state.isCancellableAction == false) {