ISHPullUp
ISHPullUp copied to clipboard
changing sizingDelegate and stateDelegate from anywhere
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?
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
}