slackhq / PanModal

An elegant and highly customizable presentation API for constructing bottom sheet modals on iOS.
MIT License
3.68k stars 531 forks source link

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

Open ludivinefafournoux opened 4 years ago

ludivinefafournoux commented 4 years ago

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 [ ])

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


devzahirul commented 4 years ago
    override func willTransition(to state: PanModalPresentationController.PresentationState) {
           if state == .shortForm {
              // when in shortForm state

           } else {
             // When in longForm state
        }
    }