-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Integrate folder picker on iPad - WPB-11895 #2156
base: develop
Are you sure you want to change the base?
Conversation
Test Results 2 files 309 suites 3m 1s ⏱️ For more details on these failures, see this check. Results for commit eba8991. ♻️ This comment has been updated with latest results. |
e42293c
to
014bbda
Compare
WireUI/Sources/WireMainNavigationUI/Protocols/Sidebar/MainSidebarMenuItemRepresentable.swift
Show resolved
Hide resolved
WireUI/Sources/WireMainNavigationUI/Protocols/Sidebar/MainSidebarMenuItemRepresentable.swift
Show resolved
Hide resolved
@MainActor | ||
public protocol SidebarViewControllerDelegate: AnyObject { | ||
func sidebarViewControllerDidSelectAccountImage(_ viewController: SidebarViewController) | ||
func sidebarViewController(_ viewController: SidebarViewController, didTapFoldersAt rect: CGRect) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
didtapFoldersAt
rect sounds really fragile to me.
Is there no other way to know which folder was selected?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@caldrian Maybe this is badly named. This is not about identifying which folder was tapped. It is the frame of the Folders
button in the sidebar.
# Conflicts: # WireUI/Sources/WireSidebarUI/Views/Preview/SidebarMenuItemPreview.swift # WireUI/Sources/WireSidebarUI/Views/SidebarMenuItemView.swift # WireUI/Sources/WireSidebarUI/Views/SidebarView.swift
@@ -87,6 +90,11 @@ struct SidebarMenuItemView<TitleView: View>: View { | |||
.cornerRadius(backgroundCornerRadius) | |||
} | |||
.dynamicTypeSize(...DynamicTypeSize.accessibility1) | |||
.onGeometryChange(for: CGRect.self) { proxy in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know what exactly happens here, but could it be that this causes performance overhead when scrolling?
I don't think every menu time view should keep track of its frame on the screen.
Maybe we can brainstorm for a bitter idea?
Issue
This PR integrates the folder picker feature on iPad ONLY hopefully meeting the acceptance requirements outline in https://wearezeta.atlassian.net/browse/WPB-11754.
folders-ipad.mov
Testing
Note: Currently there is no way to add/remove folders on
iOS
. Instead use the web interface to add/remove folders as needed.Please test on iPad.
Folders use case
Folders
from the sidebar.Folders
from the sidebar.All
from the sidebar.Folders
from the sidebar.No folders use case
Folders
from the sidebar.How to add a conversation to a folder
.Checklist
[WPB-XXX]
.UI accessibility checklist
If your PR includes UI changes, please utilize this checklist: