Skip to content

Fix the panel behavior in a sheet modal #358

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

Merged
merged 4 commits into from
Jun 3, 2020
Merged

Conversation

scenee
Copy link
Owner

@scenee scenee commented May 22, 2020

This PR fixes the following pane behavior in a sheet modal.

  • Can't drag a panel not including a scroll view in a sheet modal
  • A view controller presented modally is removed after removing the inside panel by its removal interaction.

This fixes this issue #274 (comment) (Thanks to @FlashTang), and also fixes #298 partially.

Limitation in Sheet modal
If a panel's content view controller has a scroll view, a sheet modal always moves when a panel is dragged. This is because a sheet modal automatically capture a scroll view gestures and the lib is not able to prevent it.

@scenee scenee force-pushed the fix-modal-presentation branch from 0cbfedc to a62c3a2 Compare May 23, 2020 00:07
Copy link

@FlashTang FlashTang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you SCENEE , issue fixed 👍

@chriskilpin
Copy link

Hi SCENEE thank you for looking at this I will test today.

@scenee
Copy link
Owner Author

scenee commented May 30, 2020

Hello, @chriskilpin. I would be glad if you could give me your feedback 😄

@chriskilpin
Copy link

Hi @scenee I have tested on my end and things are working as expected. Thanks again for sorting this out.

@scenee
Copy link
Owner Author

scenee commented Jun 3, 2020

@chriskilpin and @FlashTang, Thank you so much for your supports!

@scenee scenee merged commit d540b1d into master Jun 3, 2020
@scenee scenee deleted the fix-modal-presentation branch June 3, 2020 13:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

iOS 13 Card Style Presentation
3 participants