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

Drop down list not disappearing when sliding the view up or down. #185

Open
ankit7201 opened this issue Mar 13, 2020 · 1 comment
Open

Comments

@ankit7201
Copy link

Once the drop down list becomes visible and instead of selecting something from the list, we start scrolling up or down, the drop down list stays on the screen. Calling "removeTableView()" doesn't work.

@rebel-codeaz
Copy link

rebel-codeaz commented May 31, 2021

@ankitarora93 implement scrollView delegate in your file and call the library method hideResultsList() in scrollViewDidScroll() and scrollViewWillBeginDragging(). this works fine!
`extension ViewController : UIScrollViewDelegate {

    func scrollViewDidScroll(_ scrollView: UIScrollView) {
        self.yourTextField.hideResultsList()
    }
  
    func scrollViewWillBeginDragging(_ scrollView: UIScrollView) {
        self.yourTextField.hideResultsList()
    }
}`

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

2 participants