Skip to content

Support iOS 26 Liquid Glass: Document and handle tint color and button style changes#284

Merged
droibit merged 4 commits into
developfrom
feature/ios26-liquid-glass-support
Nov 26, 2025
Merged

Support iOS 26 Liquid Glass: Document and handle tint color and button style changes#284
droibit merged 4 commits into
developfrom
feature/ios26-liquid-glass-support

Conversation

@droibit

@droibit droibit commented Nov 26, 2025

Copy link
Copy Markdown
Owner

No description provided.

…nd dismiss button style

- Updated SFSafariViewController factory to avoid setting `preferredBarTintColor` and `preferredControlTintColor` on iOS 26 and later, as these properties are deprecated.
- Adjusted tests to account for iOS 26 changes: checks for `dismissButtonStyle` and tint colors now use version checks.
… are ignored on iOS 26 and later

- Clarified in `SafariViewControllerOptions` that these properties have no effect on iOS 26+ due to the introduction of Liquid Glass.
- Added notes to `LaunchOptions` indicating that `barColor` and `onBarColor` have no effect on iOS 26+ because of the Liquid Glass UI change.
- Added links to the relevant Apple documentation for both properties.
…itations

- Clarified in the feature matrix that background and control color options are ignored on iOS 26 and later.
- Added a new section explaining the impact of Liquid Glass on `SafariViewControllerOptions` and the deprecation of tint color properties.
- Provided a link to Apple's official documentation for further reference.
@droibit droibit added this to the 2.5.0 milestone Nov 26, 2025
@droibit droibit self-assigned this Nov 26, 2025
Copilot AI review requested due to automatic review settings November 26, 2025 15:22
@droibit droibit added the enhancement New feature or request label Nov 26, 2025

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR aims to support iOS 18's Liquid Glass feature by documenting and handling tint color deprecations and button style changes in Safari View Controller.

Key changes:

  • Documents that preferredBarTintColor and preferredControlTintColor are ignored on iOS 18+ due to Liquid Glass
  • Adds iOS version checks to skip setting deprecated tint colors on iOS 18+
  • Updates tests to account for default dismiss button style change from .done to .close on iOS 18+

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
flutter_custom_tabs_ios/lib/src/types/safari_view_controller_options.dart Added documentation notes about Liquid Glass behavior for tint color properties
flutter_custom_tabs_ios/ios/flutter_custom_tabs_ios/Sources/flutter_custom_tabs_ios/SFSafariViewController+Factory.swift Added iOS version check to skip setting tint colors on iOS 18+
flutter_custom_tabs_ios/example/ios/RunnerTests/SFSafariViewController+FactoryTest.swift Updated tests to verify tint colors are nil on iOS 18+ and dismiss button style changes
flutter_custom_tabs_ios/example/ios/RunnerTests/MockLauncher.swift Added UIKit import for explicit type reference
flutter_custom_tabs/lib/src/lite/launch_options.dart Added Liquid Glass documentation notes to lite API options
flutter_custom_tabs/README.md Added Liquid Glass section and updated customization table with iOS version notes

⚠️ Critical Issue: The PR consistently references iOS 26 throughout the codebase, but iOS 26 does not exist. As of January 2025, the latest iOS version is iOS 18, and "Liquid Glass" is an iOS 18 feature. All references to iOS 26 should be corrected to iOS 18 in code, documentation, and tests.

Comment thread flutter_custom_tabs/README.md
@droibit droibit merged commit e70d7f0 into develop Nov 26, 2025
4 checks passed
@droibit droibit deleted the feature/ios26-liquid-glass-support branch November 26, 2025 15:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants