title: How to insert image on UIView?
body: <p>The code below prints a line on a UIView. I just want to know the code that I would write to be able to insert an image on top of the view. </p>
  
  <pre><code>import UIKit
  
  class draw: UIView {
      var line = UIBezierPath()
      var line1 = UIBezierPath()
  
      func grapher() {
          line1.move(to: .init(x:0, y: bounds.height / 6))
          line1.addLine(to: .init(x: bounds.width, y: bounds.height / 6))
          UIColor.blue.setStroke()
          line1.lineWidth = 2
          line1.stroke()
      }
  
      override func draw(_ rect: CGRect) {
          grapher()
      }
  }
  </code></pre>