I do have a pickerview with toolbar, but when i scroll it closes before I press the done button. the button is there but somehow useless. how to make pickerview close only after pressing the done button?
I added done button like this :
let doneBtn = UIBarButtonItem(title: "Done", style: .plain, target: self, action: #selector(RoundShapeController.dismissKeyboard))
toolbar.setItems([doneBtn], animated: false)
toolbar.isUserInteractionEnabled = true
materialTextField.inputAccessoryView = toolbar