title: Clear the attributed text of textfield from the IB clear button
body: <p>I am not able to clear the attributed text of <code>UITextField</code> when the Interface Button <code>clear</code> button is triggered.</p>
  
  <p>I have tried <code>_textfield.attributedText = nil;</code> but it doesn't work. What happens next is that the UI freezes and I am not able to interact with the UI anymore.</p>
  
  <p>Moreover, the <code>attributedText</code> is not removed from the UI. </p>
  
  <p><strong>Note:</strong>
  I can't use <code>text</code> property of textfield because I have an <code>icon</code> and a <code>string</code> inside my <code>attributedText</code>. Hence, I must use this.</p>
  
  <p>Any help is much appreciated.</p>
  
  <p>Ronak</p>