-
Notifications
You must be signed in to change notification settings - Fork 2.2k
fix(ios): topbar liquid glass #1097
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
| self.closeButton.enabled = YES; | ||
|
|
||
| // Fixes the Liquid Glass issue on iOS version >= 26 where the buttons have a translucent background | ||
| if (@available(iOS 26.0, *)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't believe these checks are sufficient as it assumes that the environment is running at least XCode 26 and Cordova iOS framework declares support for XCode 15 and later.
There is a way to do a preprocessor check that is more resilient to the XCode environment, I just don't recall the exact syntax for that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The preprocessor check might be this, but I don’t remember exactly.
#if __IPHONE_OS_VERSION_MAX_ALLOWED >= 260000
if (@available(iOS 26.0, *)) {
self.closeButton.hidesSharedBackground = YES;
}
#endif
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, i will add the preprocessor check too
|
The clipboard buttons are also a problem; I am working to figure out how to fix them. |
|
@johann9898 By default, the toolbar is shown at the bottom. Please keep this also in mind, when you test your changes. |
|
I created an issue, which give all details about this issue: #1098 |


Platforms affected
IOs
Motivation and Context
iOS 26 introduced the new “Liquid Glass” appearance, which caused the InAppBrowser tool bar to become transparent and top bar buttons to appear translucent.
This change fixes that issue.
Description
This PR fixes the top bar “Liquid Glass” issue on iOS 26+ that to have background color of the tool bar same as the _browserOptions.toolbarcolor
Testing
Tested this by adding the changes of this plugin in to the app
Tested the top bar with default with toolbar in the bottom
The color might be slightly off by the brightness of the color to the one without the liquid glass