Repository navigation
适配 iPhone Duo 并修复主题切换 - #2
Merged
Merged
Conversation
- 纵向布局完全取自系统 layoutGuide(for: .bar(onEdge:extent:)),删除按摄像头遮挡自行计算位置的逻辑 - 轨道宽度改为 48pt,与系统纵向栏按钮实测一致,纵向 item 为 40x48 - viewDidLoad 提前创建两侧 bar guide,修复姿态切换后首帧位置与宽度错误 - 纵向判定统一由 TabBarController 设置 TabBarView.isVertical,不再在视图内读 trait
- 新增 ListDetailSplitViewController,聊天与设置共用:仅 Duo 展开内屏双栏,其它 iPhone 单栏 push/pop - 单栏时详情 push 到外层导航,TabBar 随前一页左移;双栏时各栏使用自身系统导航栏 - 删除自定义 NavigationBarView,全部使用系统导航栏,修复会话列表标题缺失 - 一级列表声明 contentScrollView,修复大标题不跟随滚动与持续下拉回弹失效 - 设置页修复 Duo 上分组卡片无圆角、图标与详情文字不显示,「外观」增加未读红点 - 详情页避让左侧纵向栏,plain 列表分割线不再延伸进纵向栏区域
- README 新增 iPhone Duo 适配说明,截图扩展为闭合、展开、半折叠五种姿态 - AGENTS.md 按实现重写 Duo 约定、Demo 导航规则与验证清单 - CHANGELOG 记录本次变更
GradientBlur 要求 swift-tools-version 6.3,Xcode 26.3 无法解析依赖, 导致 CI 构建 Demo 失败;Demo 代码未引用该库,直接移除。
iPhone Duo 代码以 #if compiler(>=6.4) 隔离,原 26.3 / 26.6 均不会编译这部分。 改为 26.6(验证旧工具链)+ 27.1(xcode-27 preview 镜像,覆盖 Duo 代码)。
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概述
按 HIG Designing for iPhone Duo 适配 iPhone Duo,并修复后台切换外观后 TabBar 未同步的问题。
Closes #1
变更
TabBar
layoutGuide(for: .bar(onEdge:extent:)):闭合外屏任意方向与摄像头同列,展开内屏横握与状态栏同列,展开内屏竖握回到底部横向。viewDidLoad提前创建两侧 guide,修复姿态切换后首帧位置与宽度错误。reservedRegions(kind:)避开摄像头与折叠区域。#if compiler(>=6.4)隔离,Xcode 26.x 可正常编译。Demo
ListDetailSplitViewController:仅 Duo 展开内屏双栏,其它 iPhone 单栏 push/pop,push 时 TabBar 随前一页左移。文档与 CI
xcodebuild测试并构建 Demo;27.1(xcode-27preview 镜像)覆盖 iPhone Duo 代码。GradientBlur依赖(要求 swift-tools 6.3,旧工具链无法解析)。验证
xcodebuild test:Xcode 27.1 与 26.6 均 21/21 通过;Demo 在两个版本均编译通过。