-
Notifications
You must be signed in to change notification settings - Fork 46
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
#2208 Add interactive dragging to .anytypeSheet #2221
base: develop
Are you sure you want to change the base?
#2208 Add interactive dragging to .anytypeSheet #2221
Conversation
CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅ |
e23eeae
to
74043a5
Compare
74043a5
to
f22d931
Compare
I have read the CLA Document and I hereby sign the CLA |
@stansidel thank you for your help! There are some issues that need to be improved:
Case.1.movCase.2.mov |
@mgolovko Thank you for reviewing my PR and making suggestions. I'll make sure to work on the improvements soon. |
I've made the following changes to the PR:
I would appreciate more clarification regarding the two remaining improvements:
To assist with comparison, I’ve recorded and attached the following: anytypeSheet vs. Default SwiftUI sheet Dragging Behavior: Recording with scrollable content inside the bottom sheet using anytypeSheet: scrolling-fullscreen.movRecording with scrollable content inside the bottom sheet using the default SwiftUI sheet: scrolling-sheet.movDragging with Keyboard Visible: Recording using anytypeSheet: keyboard-fullscreen.movRecording using the default SwiftUI sheet: keyboard-sheet.mov@mgolovko, could you kindly describe your expectations for the bottom sheet’s behavior in these two scenarios? |
Hey @stansidel thank you for your work! I just had a look on your implementation/comments and would like to answer on it: About drag gesture - we would like to avoid clashing between any other gesture (taps, scrolls (ideally scrollview too) and other). Our
SwiftUI |
Hi @joe-pusya, Thank you for your comments. I guess I used the native As I see in your example of the native behavior here https://github.com/user-attachments/assets/8f627a3c-3354-4b11-8182-2ecac4ab3c3f, it works just like you'd expect the custom implementation to work. Could you please explain then what are the goals of using a custom implementation of the sheets over the native one as demonstrated in the video you provided? |
It's just because of design request) The main goal is to implement floating sheet (clear space under the content, proper design like round corner and not stacking behind screens) with native swiftui sheet capabilities |
Description
This PR adds interactive dragging capability to
.anytypeSheet
used for popup like presentation (object settings for example). It should fix #2208.What type of PR is this? (check all applicable)
Related Tickets & Documents
#2208
Mobile & Desktop Screenshots/Recordings
Screen.Recording.2024-10-15.at.7.36.48.AM.mov
Added tests?
Added to documentation?