title: Using an URL image with an UIButton
body: <p>I am attempting to set an URL image to an UIButton in swift 4. I am using AFNetworking to load my images from the urls. I am seeing what is the best route to take in order to set the image to the button.</p>
  
  <p>Using <code>.setImage()</code> or <code>setImageWith()</code> does not work with urls and uibuttons.</p>
  
  <p>This is the URL being used:</p>
  
  <p><code>let imageUrl = URL(string: baseUrl + profile)</code></p>