Skip to content

Commit 90bfb33

Browse files
committed
Increase the deployment target to iOS 15
1 parent 50ba522 commit 90bfb33

File tree

2 files changed

+5
-11
lines changed

2 files changed

+5
-11
lines changed

WordPress/Classes/ViewRelated/Menus/MenuItemView.m

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -64,16 +64,10 @@ - (void)setupCancelButton
6464
button.titleLabel.adjustsFontForContentSizeCategory = YES;
6565
[button setTitle:NSLocalizedString(@"Cancel", @"") forState:UIControlStateNormal];
6666

67-
if (@available(iOS 15, *)) {
68-
UIButtonConfiguration *configuration = [UIButtonConfiguration plainButtonConfiguration];
69-
configuration.contentInsets = NSDirectionalEdgeInsetsMake(0, 6, 0, 6);
70-
button.configuration = configuration;
71-
} else {
72-
UIEdgeInsets inset = button.contentEdgeInsets;
73-
inset.left = 6.0;
74-
inset.right = inset.left;
75-
button.contentEdgeInsets = inset;
76-
}
67+
UIButtonConfiguration *configuration = [UIButtonConfiguration plainButtonConfiguration];
68+
configuration.contentInsets = NSDirectionalEdgeInsetsMake(0, 6, 0, 6);
69+
button.configuration = configuration;
70+
7771
button.hidden = YES;
7872

7973
[self.accessoryStackView addArrangedSubview:button];

config/Common.xcconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
GCC_WARN_UNUSED_PARAMETER = YES
22
WARNING_CFLAGS = -Wno-nullability-completeness
3-
IPHONEOS_DEPLOYMENT_TARGET = 14.0
3+
IPHONEOS_DEPLOYMENT_TARGET = 15.0

0 commit comments

Comments
 (0)