Answers for "debounce runloop siwft"

0

debounce runloop siwft

let sub = NotificationCenter.default
    .publisher(for: NSControl.textDidChangeNotification, object: filterField)
    .debounce(for: .milliseconds(500), scheduler: RunLoop.main)
    .subscribe(on: RunLoop.main)
    .assign(to:\MyViewModel.filterString, on: myViewModel)
Posted by: Guest on February-04-2021

Browse Popular Code Answers by Language