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

When pullupview hide then it never show up again #3

Open
shashi751 opened this issue Jan 8, 2020 · 2 comments
Open

When pullupview hide then it never show up again #3

shashi751 opened this issue Jan 8, 2020 · 2 comments

Comments

@shashi751
Copy link

I used the code as below for test purpose
@IBAction func showPullupController(_ sender: UIButton) {

if sender.currentTitle == "Show"{
    pullUpControl.setupCard(from: view)
    sender.setTitle("Hide", for: .normal)
}else{
    pullUpControl.hide()
    sender.setTitle("Show", for: .normal)
}

}
first time it setUp the view and display the pullupview but when it hides in else condition it will never show up even if it goes to if condition. Please suggest the fix.

@Ahmadalsofi
Copy link
Owner

Hi @shashi751 ,

you must call setupcard -setupCard(from: view)- one time just.

if you want to show the pullupview call pullUpControl.show

@PetroDevEn
Copy link

PetroDevEn commented Aug 30, 2023

public func show() {
        parentView?.subviews.forEach { (subView) in
            if subView.tag == self.pullUpViewTag {
                    subView.isHidden = true
            }
        }
    }

@Ahmadalsofi please fixe the code for func show()
there should be subView.isHidden = false

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

3 participants