Skip to content
This repository was archived by the owner on Nov 3, 2025. It is now read-only.

feat: impl "Sheets" like behavior#169

Open
toshi0383 wants to merge 1 commit intoslackhq:masterfrom
toshi0383:issue/168
Open

feat: impl "Sheets" like behavior#169
toshi0383 wants to merge 1 commit intoslackhq:masterfrom
toshi0383:issue/168

Conversation

@toshi0383
Copy link
Copy Markdown

@toshi0383 toshi0383 commented Feb 22, 2022

Summary

fixes: #168

169.mp4

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
Copy Markdown

CLAassistant commented Feb 22, 2022

CLA assistant check
All committers have signed the CLA.

*/
containerView.addSubview(presentedView)
containerView.addGestureRecognizer(panGestureRecognizer)
presentedView.addGestureRecognizer(panGestureRecognizer)
Copy link
Copy Markdown
Author

@toshi0383 toshi0383 Feb 22, 2022

Choose a reason for hiding this comment

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

Required but breaking change here.
IMO this makes more sense though, because the background area shouldn't be pull-to-dismissable.

dismiss(animated: true, completion: nil)
presentPanModal(rowType.presentable.rowVC)
let vc = rowType.presentable.rowVC
hitTestView.hitTestDelegateView = vc.view
Copy link
Copy Markdown
Author

@toshi0383 toshi0383 Feb 22, 2022

Choose a reason for hiding this comment

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

containerView have to be isUserInteractionEnabled: false to enable user interaction in presentingVC, so this did the trick to also enable it in presentedVC.

@toshi0383 toshi0383 changed the title feat: impl Sheet like behavior feat: impl "Sheets" like behavior Feb 22, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

"Sheets" like UX option

2 participants