Skip to content

Instantly share code, notes, and snippets.

@vikdenic
Created July 19, 2017 19:51
Show Gist options
  • Select an option

  • Save vikdenic/0bdcf76e760f4b0cd7f83d09ae36550f to your computer and use it in GitHub Desktop.

Select an option

Save vikdenic/0bdcf76e760f4b0cd7f83d09ae36550f to your computer and use it in GitHub Desktop.
override func viewDidLoad() {
super.viewDidLoad()
_ = Timer.scheduledTimer(timeInterval: 1.5, target: self, selector: #selector(AddLocationViewController.updateSearchText), userInfo: nil, repeats: true)
}
func updateSearchText() {
if previousSearchText != searchTextField.text {
previousSearchText = searchTextField.text!
tableDataSource.sourceTextHasChanged(searchTextField.text)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment