mirror of
https://github.com/Finb/Bark.git
synced 2026-04-25 22:15:52 +03:00
[PR #246] [MERGED] 添加 iPad 支持 #321
Labels
No labels
bug
enhancement
in progress
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/Bark#321
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Finb/Bark/pull/246
Author: @iGuan7u
Created: 8/17/2024
Status: ✅ Merged
Merged: 9/2/2024
Merged by: @Finb
Base:
master← Head:master📝 Commits (7)
5115ff6添加 iPad 支持1ff06ff兼容 iOS138cd40a8在 iOS14 上使用BarkSplitViewController,iOS13使用 UITabBarController45d4427添加 BarkTabBarController402b19aiPad下让左侧导航栏一直显示ad7f7dc去掉 ViewModel 中的UIKit 引入55a0533同步 sectionViewController 和 compactController 当前显示页面📊 Changes
13 files changed (+346 additions, -64 deletions)
View changed files
📝
Bark.xcodeproj/project.pbxproj(+22 -2)📝
Bark/AppDelegate.swift(+8 -20)📝
Common/Client.swift(+5 -5)➕
Controller/BarkSplitViewController.swift(+50 -0)➕
Controller/BarkTabBarController.swift(+30 -0)📝
Controller/BaseViewController.swift(+5 -1)📝
Controller/GroupFilterViewModel.swift(+2 -2)📝
Controller/MessageListViewController.swift(+43 -18)📝
Controller/MessageListViewModel.swift(+13 -9)📝
Controller/MessageSettingsViewController.swift(+21 -5)➕
Controller/SectionViewController-iPad.swift(+84 -0)➕
Controller/SectionViewModel-iPad.swift(+50 -0)📝
Controller/ServerListViewController.swift(+13 -2)📄 Description
看到 这个 issue有感,这么实用的应用如果能支持 iPad 就更好了,Swift/RX 苦手,略尽绵力。
代码改动似乎不小,以下希望能帮助 Review:
rx.modelSelected改为rx.itemSelected,改由增加传递 indexPath,方便 actionSheet popover 能正确定位 sourceView,否则 iPad 下单纯展示 actionSheet 会直接出现崩溃已自测已知路径,能正常支持 iPad 分屏模式:



🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.