Skip to content

Commit d5c1d06

Browse files
Shivam BhallaShivam Bhalla
authored andcommitted
Variable renamed
1 parent 57d2e48 commit d5c1d06

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

CFAlertViewController/Cells/CFAlertActionTableViewCell.swift

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -66,43 +66,43 @@ class CFAlertActionTableViewCell: UITableViewCell {
6666

6767
// Set Action Style
6868
var actionBackgroundColor: UIColor? = action.backgroundColor
69-
var actionFontColor: UIColor? = action.textColor
69+
var actionTextColor: UIColor? = action.textColor
7070

7171
switch action.style {
7272

7373
case .Cancel:
7474
if actionBackgroundColor == nil {
7575
actionBackgroundColor = CFAlertActionTableViewCell.CF_CANCEL_ACTION_COLOR()
7676
}
77-
if actionFontColor == nil {
78-
actionFontColor = CFAlertActionTableViewCell.CF_CANCEL_ACTION_TEXT_COLOR()
77+
if actionTextColor == nil {
78+
actionTextColor = CFAlertActionTableViewCell.CF_CANCEL_ACTION_TEXT_COLOR()
7979
}
8080
actionButton?.backgroundColor = UIColor.clear
81-
actionButton?.setTitleColor(actionFontColor, for: .normal)
81+
actionButton?.setTitleColor(actionTextColor, for: .normal)
8282
actionButton?.layer.borderColor = actionBackgroundColor?.cgColor
8383
actionButton?.layer.borderWidth = 1.0
8484

8585
case .Destructive:
8686
if actionBackgroundColor == nil {
8787
actionBackgroundColor = CFAlertActionTableViewCell.CF_DESTRUCTIVE_ACTION_COLOR()
8888
}
89-
if actionFontColor == nil {
90-
actionFontColor = CFAlertActionTableViewCell.CF_DESTRUCTIVE_ACTION_TEXT_COLOR()
89+
if actionTextColor == nil {
90+
actionTextColor = CFAlertActionTableViewCell.CF_DESTRUCTIVE_ACTION_TEXT_COLOR()
9191
}
9292
actionButton?.backgroundColor = actionBackgroundColor
93-
actionButton?.setTitleColor(actionFontColor, for: .normal)
93+
actionButton?.setTitleColor(actionTextColor, for: .normal)
9494
actionButton?.layer.borderColor = nil
9595
actionButton?.layer.borderWidth = 0.0
9696

9797
default:
9898
if actionBackgroundColor == nil {
9999
actionBackgroundColor = CFAlertActionTableViewCell.CF_DEFAULT_ACTION_COLOR()
100100
}
101-
if actionFontColor == nil {
102-
actionFontColor = CFAlertActionTableViewCell.CF_DEFAULT_ACTION_TEXT_COLOR()
101+
if actionTextColor == nil {
102+
actionTextColor = CFAlertActionTableViewCell.CF_DEFAULT_ACTION_TEXT_COLOR()
103103
}
104104
actionButton?.backgroundColor = actionBackgroundColor
105-
actionButton?.setTitleColor(actionFontColor, for: .normal)
105+
actionButton?.setTitleColor(actionTextColor, for: .normal)
106106
actionButton?.layer.borderColor = nil
107107
actionButton?.layer.borderWidth = 0.0
108108
}

0 commit comments

Comments
 (0)