Skip to content

Commit af5da35

Browse files
authored
fix: respect UIDesignRequiresCompatibility in `KeyboardExtenderCont… (#1402)
Closes #1401 ## Summary - Check `UIDesignRequiresCompatibility` before using `ModernContainerView` on iOS 26+ - Fall back to `LegacyContainerView` when compatibility mode is enabled ## Before <img width="250" alt="Simulator Screenshot - iPhone 17 Pro - 2026-03-26 at 13 17 40" src="https://github.com/user-attachments/assets/e3a93db9-15b3-43a3-a24e-cd64ffac8c6e" /> ## After <img width="250" alt="Simulator Screenshot - iPhone 17 Pro - 2026-03-26 at 13 18 54" src="https://github.com/user-attachments/assets/3700fc52-5c7e-4a0d-9168-2c52a02e7626" /> ## Test plan - Set `UIDesignRequiresCompatibility` to `true` in `Info.plist` - Run on iOS 26.2 simulator - Verify `KeyboardExtender` renders without rounded corners
1 parent 33a5d7b commit af5da35

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

ios/views/KeyboardExtenderContainerView.swift

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@ public class KeyboardExtenderContainerView: NSObject {
1212
@objc public static func create(frame: CGRect, contentView: UIView) -> UIView {
1313
#if canImport(UIKit.UIGlassEffect)
1414
if #available(iOS 26.0, *) {
15-
return ModernContainerView(frame: frame, contentView: contentView)
15+
let requiresCompat = Bundle.main.object(forInfoDictionaryKey: "UIDesignRequiresCompatibility") as? Bool ?? false
16+
if !requiresCompat {
17+
return ModernContainerView(frame: frame, contentView: contentView)
18+
}
1619
}
1720
#endif
1821

0 commit comments

Comments
 (0)