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

changing sizingDelegate and stateDelegate from anywhere #81

Open
albarq opened this issue Sep 8, 2018 · 1 comment
Open

changing sizingDelegate and stateDelegate from anywhere #81

albarq opened this issue Sep 8, 2018 · 1 comment

Comments

@albarq
Copy link

albarq commented Sep 8, 2018

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
Copy link
Author

albarq commented Sep 9, 2018

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
}

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

1 participant