title: how to make circular image that is in button in swift?
body: <p>I have a button in <code>UIViewcontroller</code> which contains the button with name and image.
  I want to make <code>UIImageView</code> circular that is in this button [<strong>NOT WHOLE BUTTON</strong>].</p>
  
  <p>Is there any way to do that?</p>
  
  <h2><em>here is a screenshot of current state :</em></h2>
  
  <p><a href="https://i.stack.imgur.com/G9JFD.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/G9JFD.png" alt="enter image description here"></a></p>
  
  <h2><em>what I want is :</em></h2>
  
  <p><a href="https://i.stack.imgur.com/iEh99.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/iEh99.png" alt="enter image description here"></a></p>
  
  <hr>
  
  <p><strong>"Similar question" (How different than mine):</strong></p>
  
  <p><a href="https://stackoverflow.com/q/45862727/6550949">How can I set UIButton image, which Image is round shape with a border</a> </p>
  
  <p>I do not want the border to image view and also I have taken button in the storyboard and only want to make an image circular (without border any border).</p>
  
  <p><em>it is pretty clear that the question why my question is marked duplicate for is only setting the border to button not making <code>UIImageView</code> circular.</em></p>
  
  <p>he is asking for programmatically created button and setting border so that button could look circular and also the answer is not accepted and none of the answers is working for me.</p>
  
  <p>and I like to point out that as you can see I have accepted one of the below answer the person have given the answer as I expected.</p>
  
  <p>and also because it's in navigation bar resulting in changing the size of a button but because the answer it's not giving me an error like this question</p>
  
  <p><a href="https://stackoverflow.com/q/45862727/6550949">How to create a circular button in Swift?</a></p>
  
  <p><em>again for those who flagged duplicate for the round button, I do not want the button to be round.</em></p>
  
  <hr>