Skip to content

Commit 5843071

Browse files
author
Dmytro Likhachov
committed
Make MMMAutoLayoutScrollView compatible with iOS 26
1 parent be26996 commit 5843071

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

MMMCommonUI.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
Pod::Spec.new do |s|
77

88
s.name = "MMMCommonUI"
9-
s.version = "3.14.1"
9+
s.version = "3.14.2"
1010
s.summary = "Small UI-related pieces reused in many components from MMMTemple"
1111
s.description = "#{s.summary}."
1212
s.homepage = "https://github.com/mediamonks/#{s.name}"

Sources/MMMCommonUIObjC/MMMAutoLayoutScrollView.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ - (void)setContentInsetAdjustmentBehavior:(UIScrollViewContentInsetAdjustmentBeh
176176

177177
- (void)addSubview:(UIView *)view {
178178
NSAssert(
179-
!_hierarchyLocked || [NSStringFromClass([view class]) hasPrefix:@"UI"],
179+
!_hierarchyLocked || ([NSStringFromClass([view class]) hasPrefix:@"UI"] || [NSStringFromClass([view class]) hasPrefix:@"_UI"]),
180180
@"Add your subviews into `contentView` and not into %@ directly", self.class
181181
);
182182
[super addSubview:view];

0 commit comments

Comments
 (0)