PanModal icon indicating copy to clipboard operation
PanModal copied to clipboard

Update PanModalPresentationController.swift

Open cdoky opened this issue 3 years ago • 1 comments

Summary

self.panModalSetNeedsLayoutUpdate()
self.panModalTransition(to: .longForm)

After shouldRoundTopCorners is set, if the height of the view is refreshed, the content of the page will be completely masked because the width and height of the page are 0 when the corners are drawn

So just need to redraw after containerViewDidLayoutSubviews rounded corners

Requirements (place an x in each [ ])

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

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

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

cdoky avatar Mar 12 '22 03:03 cdoky

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar Mar 12 '22 03:03 CLAassistant