title: How can I replace "Done" on the keyboard with an icon?
body: <pre><code>func setDefaultSearchbar(with doneTarget: AnyObject, doneAction: Selector, shouldShowSearchIcon: Bool = false) {
      if let textField = value(forKey: &quot;searchField&quot;) as? UITextField {
        textField.font = UIFont.regularDMSans(of: 15)
        textField.textColor = .textLight
      }
      if !shouldShowSearchIcon {
        setImage(UIImage(), for: .search, state: .normal)
      }
      setSearchFieldBackgroundImage(UIImage(), for: .normal)
      searchTextField.addDoneOnKeyboardWithTarget(doneTarget, action: doneAction)
      searchTextField.keyboardToolbar.doneBarButton.setBackgroundImage(UIImage(named: &quot;icon_plus&quot;), for: .normal, barMetrics: .default)
    }
  </code></pre>
  <p>I wrote a default function with a Done button for the keyboard. I can put the icon but I couldn't delete the text. How can I delete the text and make only the icon appear?</p>