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

Is it possible to know when the height of PanModal changes ? #114

Open
4 of 9 tasks
ludivinefafournoux opened this issue Aug 4, 2020 · 1 comment
Open
4 of 9 tasks

Comments

@ludivinefafournoux
Copy link

Description

Is it possible to know when the height of PanModal changes, when it switch between longFormHeight and shortFormHeight ? I've searched but I didn't find how to do it. Thanks

What type of issue is this? (place an x in one of the [ ])

  • bug
  • enhancement (feature request)
  • question
  • documentation related
  • testing related
  • discussion

Requirements (place an x in each of the [ ])

  • 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 searched for any related issues and avoided creating a duplicate issue.

@devzahirul
Copy link

devzahirul commented Oct 16, 2020

    override func willTransition(to state: PanModalPresentationController.PresentationState) {
           if state == .shortForm {
              // when in shortForm state

           } else {
             // When in longForm state
        }
    }

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

No branches or pull requests

2 participants