This is an automated email from the ASF dual-hosted git repository. manuelbeck pushed a commit to branch pr-ios-add-comment-for-constraint-warning-on-ios-26 in repository https://gitbox.apache.org/repos/asf/cordova-plugin-inappbrowser.git
commit 0da971968804b983f91f10f26a81b4d58cdab40d Author: Manuel Beck <[email protected]> AuthorDate: Wed Feb 25 13:11:26 2026 +0100 doc(ios): constraint warnings on iOS 26 and using `initWithBarButtonSystemItem` - Add a note, that using `initWithBarButtonSystemItem` gives constraint warnings on iOS 26, which is due to a iOS bug --- src/ios/CDVWKInAppBrowser.m | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ios/CDVWKInAppBrowser.m b/src/ios/CDVWKInAppBrowser.m index 0c6feb8..633280b 100644 --- a/src/ios/CDVWKInAppBrowser.m +++ b/src/ios/CDVWKInAppBrowser.m @@ -794,6 +794,8 @@ BOOL isExiting = NO; // We add our own constraints, they should not be determined from the frame. self.spinner.translatesAutoresizingMaskIntoConstraints = NO; + // On iOS 26 adding `UIBarButtonItem` with `initWithBarButtonSystemItem` gives constraint warnings here, + // which seems to be an UIKit bug. See: https://stackoverflow.com/questions/79767518/simple-toolbar-population-causes-auto-layout-conflict self.closeButton = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemDone target:self action:@selector(close)]; self.closeButton.enabled = YES; --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
