Skip to content

Commit 2ecd804

Browse files
committed
Change variable from buttonHeaderTitle to headerTitle
1 parent 4fe7e52 commit 2ecd804

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

WordPress/Classes/ViewRelated/System/Action Sheet/ActionSheetViewController.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,11 @@ class ActionSheetViewController: UIViewController {
4747

4848
let headerView: UIView?
4949
let buttons: [ActionSheetButton]
50-
let buttonHeaderTitle: String
50+
let headerTitle: String
5151

52-
init(headerView: UIView? = nil, buttonHeaderTitle: String, buttons: [ActionSheetButton]) {
52+
init(headerView: UIView? = nil, headerTitle: String, buttons: [ActionSheetButton]) {
5353
self.headerView = headerView
54-
self.buttonHeaderTitle = buttonHeaderTitle
54+
self.headerTitle = headerTitle
5555
self.buttons = buttons
5656
super.init(nibName: nil, bundle: nil)
5757
}
@@ -85,7 +85,7 @@ class ActionSheetViewController: UIViewController {
8585
headerLabelView.pinSubviewToAllEdges(headerLabel, insets: Constants.Header.insets)
8686

8787
headerLabel.font = WPStyleGuide.fontForTextStyle(.headline)
88-
headerLabel.text = buttonHeaderTitle
88+
headerLabel.text = headerTitle
8989
headerLabel.translatesAutoresizingMaskIntoConstraints = false
9090

9191
let buttonViews = buttons.map({ (buttonInfo) -> UIButton in

WordPress/Classes/ViewRelated/System/Floating Create Button/CreateButtonActionSheet.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class CreateButtonActionSheet: ActionSheetViewController {
1212

1313
init(actions: [ActionSheetItem]) {
1414
let buttons = actions.map { $0.makeButton() }
15-
super.init(buttonHeaderTitle: Constants.title, buttons: buttons)
15+
super.init(headerTitle: Constants.title, buttons: buttons)
1616
}
1717

1818
required init?(coder: NSCoder) {

0 commit comments

Comments
 (0)