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.
I used the code as below for test purpose
@IBAction func showPullupController(_ sender: UIButton) {
}
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.