ISHPullUp icon indicating copy to clipboard operation
ISHPullUp copied to clipboard

changing sizingDelegate and stateDelegate from anywhere

Open albarq opened this issue 7 years ago • 1 comments

Hi,

First I want to thank you for your great work of ISHPullUp ... I used in my app globally and my app heavily depend on your work ...

but because I have global ISHPullUp .. I have to change bottomViewController every time i want to show different bottom view controller ... it works fine .... except sizing not working properly ..

Can you help please?

albarq avatar Sep 08 '18 08:09 albarq

I have discovered problem ...

i am setting variable like this var maximumAvailableHeight:CGFloat! = 150.0 var minimumHeight:CGFloat! = 0.0 var targetHeight:CGFloat! = 150.0

it is not working with variables ... it suppose to be set static

func pullUpViewController(_ pullUpViewController: ISHPullUpViewController, maximumHeightForBottomViewController bottomVC: UIViewController, maximumAvailableHeight: CGFloat) -> CGFloat {
    
    
    return 150 //maximumAvailableHeight
}

albarq avatar Sep 09 '18 01:09 albarq