Skip to content

Commit ae8d174

Browse files
committed
Support build with Xcode 16
1 parent 42bcfbb commit ae8d174

File tree

4 files changed

+13
-52
lines changed

4 files changed

+13
-52
lines changed

Sources/InAppSettingsKit/Controllers/IASKAppSettingsWebViewController.m

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,10 +149,11 @@ - (void)loadView {
149149
if (!self.showProgress) {
150150
// Add default activity indicator when `IASKWebViewShowProgress` is disabled:
151151
UIBarButtonItem *activityBarButtonItem = [[UIBarButtonItem alloc] initWithCustomView:self.activityIndicatorView];
152-
if (@available(iOS 26.0, *)) {
152+
IASK_IF_IOS26_OR_GREATER
153+
(
153154
activityBarButtonItem.hidesSharedBackground = YES;
154155
[barButtons addObject:UIBarButtonItem.fixedSpaceItem];
155-
}
156+
)
156157
[barButtons addObject:activityBarButtonItem];
157158
}
158159
self.navigationItem.rightBarButtonItems = barButtons;

Sources/InAppSettingsKit/Controllers/UIColor+IASKAdditions.m

Lines changed: 0 additions & 32 deletions
This file was deleted.

Sources/InAppSettingsKit/include/IASKSettingsReader.h

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -177,11 +177,7 @@ extern NSString * const IASKSettingChangedNotification;
177177
#define kIASKMinLabelWidth 97
178178
#define kIASKMaxLabelWidth 240
179179
#define kIASKMinValueWidth 35
180-
#if __IPHONE_OS_VERSION_MAX_ALLOWED >= 70000
181-
#define kIASKPaddingLeft (floor(NSFoundationVersionNumber) > NSFoundationVersionNumber_iOS_6_1 ? 15 : 9)
182-
#else
183-
#define kIASKPaddingLeft 9
184-
#endif
180+
#define kIASKPaddingLeft 15
185181
#define kIASKPaddingRight 10
186182
#define kIASKHorizontalPaddingGroupTitles 19
187183
#define kIASKVerticalPaddingGroupTitles 15
@@ -191,6 +187,15 @@ extern NSString * const IASKSettingChangedNotification;
191187

192188
#define kIASKMinimumFontSize 12.0f
193189

190+
#ifdef __IPHONE_26_0
191+
#define IASK_IF_IOS26_OR_GREATER(...) \
192+
if (@available(iOS 26.0, *)) \
193+
{ \
194+
__VA_ARGS__ \
195+
}
196+
#else
197+
#define IASK_IF_IOS26_OR_GREATER(...)
198+
#endif
194199

195200
@class IASKSpecifier;
196201
@protocol IASKSettingsStore;

Sources/InAppSettingsKit/include/UIColor+IASKAdditions.h

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)