Fix search bar on iPadOS 26#2435
Conversation
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
||||||||||||||||||||||||
PR Code Suggestions ✨Explore these optional code suggestions:
|
|||||||||||||||
|
@claude pleaase review this ticket |
✅ Fixes AppliedCompleted
Concern 2 (iPhone vs iPad)Not changed — iOS 26 path retained for both iPhone and iPad as screenshots confirm the titleView approach improves iPhone styling by removing the liquid glass edge artefact. Completed: 2026-03-07 00:24 UTC |
Code Review — Fix search bar on iPadOS 26Thanks for the fix! The approach is sound and the screenshots clearly show the improvement. Here's my analysis: ✅ What's Good
|
| # | Severity | Item |
|---|---|---|
| 1 | Medium | Theme tint not applied on iOS 26+ path |
| 2 | Medium | iPhone unintentionally affected by iOS 26 branch |
| 3 | Minor | Missing contentMode = .scaleAspectFit |
The core idea is correct — happy to approve once the tint regression and iPad-only scoping are addressed (or the iPhone behaviour change is confirmed intentional).
@claude fix concern 1 and 3, for 2, the screenshots for ios do show an improvement in the styling though, it removes the weird liquid glass edge, so reconsider if we need an ios/ipad distinction or different fix for this perceived alignment issue (it could just be the screenshot cropping making it look off center?) |
Fixes AppliedAddressed concerns 1 and 3 from the review. Concern 2 (iPhone vs iPad scope) was reconsidered — the screenshots show the iOS 26 path actually improves styling on iPhone too by removing the liquid glass edge artefact, so the unified Changes in
|
- Move menuIconTint extraction before #available block so it is available in both paths - Set imageView.tintColor = menuIconTint on iOS 26+ path to fix missing theme tint regression - Add imageView.contentMode = .scaleAspectFit to prevent logo distortion on iOS 26+ - Retain unified iOS 26 path for iPhone and iPad (screenshots confirm improved styling removes liquid glass edge artefact on both) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
Hi @dnicolson! This PR has a rebase conflict with To unblock, please rebase your branch: git fetch upstream
git checkout patch-3
git rebase upstream/develop
# resolve any conflicts in SideMenuView.swift, then:
git push --force-with-lease(If you don't have The CI smoke build failure is also now fixed on our end — the ZipArchive submodule clone issue has been resolved in |
On iOS 26 the search bar was overlapping the nav icon. Use preferredSearchBarPlacement = .stacked and set the logo via titleView instead of leftBarButtonItem. Original fix by @dnicolson in PR #2435. Co-Authored-By: dnicolson <dnicolson@users.noreply.github.com> Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
Thanks @dnicolson! Applied your fix directly to |
Pull request was closed
User description
What does this PR do
This adjusts the navigation bar item and search bar placement to fix iPadOS 26 layout issues.
Any background context you want to provide
When built against the iOS 26 SDK, the search bar moves to the bottom on iOS but causes layout issues on iPadOS.
Screenshots (important for UI changes)
PR Type
Bug fix
Description
Fixes search bar layout issues on iOS 26 SDK
Implements platform-specific navigation bar handling
Uses stacked search bar placement for iOS 26+
Preserves legacy navigation bar styling for older versions
Diagram Walkthrough
File Walkthrough
SideMenuView.swift
Add iOS 26 conditional navigation bar handlingPVUI/Sources/PVSwiftUI/SideMenu/SideMenuView.swift
setup
titleViewwithUIImageViewand setspreferredSearchBarPlacementto.stackedleftBarButtonItemconfiguration