Skip to content
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

Remove appearance transitions called on presenting controller #140

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kylehickinson
Copy link

@kylehickinson kylehickinson commented Mar 22, 2021

Summary

Fixes #139

This better mimics how iOS handles overFullScreen/overCurrentContext/pageSheet style presentations where—since the presenting view controller is remaining visible and part of the view hierarchy—it does not call view*Appear/view*Disappear methods

Ultimately this is a behaviour breaking change though for anyone consuming the code and relying on the presenting controller getting appearance transition calls

Requirements (place an x in each [ ])

  • I've read and understood the Contributing Guidelines and have done my best effort to follow them.

  • I've read and agree to the Code of Conduct.

  • I've written tests to cover the new code and functionality included in this PR.

@CLAassistant
Copy link

CLAassistant commented Mar 22, 2021

CLA assistant check
All committers have signed the CLA.

This better mimics how iOS handles `overFullScreen`/`overCurrentContext`/`pageSheet` style presentations where—since the presenting view controller is remaining visible and part of the view hierarchy—it does not call `view*Appear`/`view*Disappear` methods
@kylehickinson kylehickinson force-pushed the remove-presenting-appearance-transitions branch from d127e7e to 32fc8b5 Compare March 22, 2021 17:22
@m1entus
Copy link

m1entus commented Sep 15, 2021

Wouldn't be easier just to introduce a flag to PanModalPresentationAnimator if it should use appearance transitions ?

@ppamorim
Copy link

@kylehickinson @m1entus I did merge this in my fork: https://github.com/ppamorim/PanModal Feel free to test.

Copy link

@ykozlovFivePro ykozlovFivePro left a comment

Choose a reason for hiding this comment

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

This fix does exactly what it was desired for. I'd like to have in merged into main branch.

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.

Presenting view controller no longer gets safe area updates once a PanModal has been presented on it
6 participants