title: add textview as a sublayer of an image ios swift
body: <pre><code>let ss = CATextLayer()
    ss.frame = rect
    ss.backgroundColor = UIColor.blue.cgColor
    ss.foregroundColor = UIColor.cyan.cgColor
    ss.string = mytextView.text
    myImage.layer.addSublayer(ss)
  </code></pre>
  
  <p>I am trying to add an editable textview as a sublayer of an imageview.the problem is, i am not able to edit and also not able to add gesture recognisers for this textlayer. How can i make this textlayer do exactly what a textview does.</p>