Repository navigation
修复: Duo 分屏左侧纵向 TabBar 偏移,支持长按展开显示标题 - #5
Merged
Merged
Conversation
- 纵向栏轨道改为取 window 上的 bar layout guide 再转换到 view: 外层 UINavigationController 在纵向栏一侧给子控制器追加 safe area (分屏左侧 leading 84pt),view 上的 guide 叠在其后,导致 TabBar 偏离系统纵向栏列(#3)。 - 纵向布局长按向屏幕内侧展开,显示图标 + 标题;上下滑动切换高亮, 松手选中并收起;展开只改 TabBar frame,不改子控制器 insets(#4)。 - 长按手势设置 delegate,与 TabSelectionRecognizer 同时识别, 修复 didLongPress 从未回调。 Closes #3 Closes #4
- 展开样式对齐系统纵向 TabBar:以轨道中线为中心加宽、贴底向上长高, item 恢复横向样式(图标 + 下方标题,高 56),选中气泡抬起放大。 - TabBar 外框、内部容器与内容使用同一 spring 过渡,标题淡入淡出, 消除长按时的尺寸突变。 - 长按手势仅在纵向布局参与识别;横向布局恢复原有交互,修复长按后 选中块停留在放大状态。 - 补充纵向展开 / 收起的标题显隐与高度测试。 Refs #4
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.
变更摘要
layoutGuide(for: .bar(onEdge:extent:))再转换到view。外层UINavigationController会在纵向栏一侧给子控制器追加 safe area(实测 leading 84pt),view上的 guide 叠在其后,minX为 84 而非 24。didLongPress。测试
xcodebuild test -scheme TabBar:Xcode 27.1(iPhone Duo,iOS 27.1)与 Xcode 26.6(iPhone 17 Pro,iOS 26.5)均 21/21 通过(含新增展开态断言)