title: How to make an image view and a label adaptive to each other in swift
body: <p>I have a UI View, which consists of image view and a label. UI view has constraints set up to the superview. These labels are of different sizes,(data coming from backend) so I want to adjust the background image according to the length of the label.</p>
  
  <p>For example : Label : "Hi How are you"
  In this scenario - the image should fit the label and should look proportionate to the screen</p>
  
  <p>Label : "Hi"
  In the scenario - the image should fit the label containing just "Hi", meaning it should shrink based on the label string length.</p>
  
  <p>Is this possible ? </p>