This is an automated email from the ASF dual-hosted git repository.
GitToTheHub pushed a commit to branch master
in repository
https://gitbox.apache.org/repos/asf/cordova-plugin-inappbrowser.git
The following commit(s) were added to refs/heads/master by this push:
new 42e12dd doc(ios): constraint warnings on iOS 26 and using
`initWithBarButtonSystemItem` (#1127)
42e12dd is described below
commit 42e12ddfade4104bb7766e561dc2842f1aa75456
Author: Manuel Beck <[email protected]>
AuthorDate: Tue May 5 18:37:24 2026 +0200
doc(ios): constraint warnings on iOS 26 and using
`initWithBarButtonSystemItem` (#1127)
- 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 92a35b4..daf3a9f 100644
--- a/src/ios/CDVWKInAppBrowser.m
+++ b/src/ios/CDVWKInAppBrowser.m
@@ -809,6 +809,8 @@ BOOL isExiting = NO;
// We add our own constraints, they should not be determined from the
frame.
self.spinner.translatesAutoresizingMaskIntoConstraints = NO;
+ // NOTE: On iOS 26 using `UIBarButtonItem initWithBarButtonSystemItem:`
gives constraint warnings,
+ // which is a known UIKit bug.
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]