You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ma...@apache.org on 2026/02/25 12:11:39 UTC

(cordova-plugin-inappbrowser) 01/01: doc(ios): constraint warnings on iOS 26 and using `initWithBarButtonSystemItem`

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 <ma...@outlook.de>
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: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org