We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I want to reload the height after data comes from server without loosing animation effect. its jerking if call this line
(self.presentationController as? BottomPopupPresentationController)?.containerViewWillLayoutSubviews()
fileprivate func adjustListHeight()-> CGFloat{ let height = UIScreen.main.bounds.size.height * 50 / 100 // if self.dataArray.count == 0{ // // return height // }else{ // if dataArray.count > 10{ // let height = UIScreen.main.bounds.size.height * 50 / 100 // return height // }else{ // return CGFloat(((dataArray.count + 1) * 44) + 70) // } // } return height } override var popupHeight: CGFloat{ return adjustListHeight() }
The text was updated successfully, but these errors were encountered:
You can call updatePopupHeight(to: CGFloat) anywhere to update height of popup.
updatePopupHeight(to: CGFloat)
Sorry, something went wrong.
No branches or pull requests
I want to reload the height after data comes from server without loosing animation effect. its jerking if call this line
(self.presentationController as? BottomPopupPresentationController)?.containerViewWillLayoutSubviews()
fileprivate func adjustListHeight()-> CGFloat{ let height = UIScreen.main.bounds.size.height * 50 / 100 // if self.dataArray.count == 0{ // // return height // }else{ // if dataArray.count > 10{ // let height = UIScreen.main.bounds.size.height * 50 / 100 // return height // }else{ // return CGFloat(((dataArray.count + 1) * 44) + 70) // } // } return height } override var popupHeight: CGFloat{ return adjustListHeight() }
The text was updated successfully, but these errors were encountered: