title: How to draw emojis on UIImageView using gesture
body: <p>Hope all are safe in this pandemic situation.</p>
  <p>I have been trying to design an application similar to SnapChat, I am stucked in an issue since a week for which I am not getting any library from gitHub or any code reference from stackOverFlow.
  I have to draw various emoji lines using swipe gesture on an UIImageView for which I have used <strong>UIGraphicsGetCurrentContext()</strong>
  The issue I am facing is to managing equal space between the emojis.
  I am attaching the screenshot of my work done till now.
  Any help would be appreciated.
  Thanks in advance</p>
  <pre><code> func drawLineFrom(_ fromPoint: CGPoint, toPoint: CGPoint) {
          
          // isDrawingEmoji is used as a boolean to manage simple line drawing or emoji drawing.
  
          if isDrawingEmoji == true {
              
              UIGraphicsBeginImageContext(topImageView.frame.size)
              let context = UIGraphicsGetCurrentContext()
              context?.setAlpha(1.0)
              topImageView.image?.draw(in: self.img.frame)
  
              
              if let emoji = selectedEmoji.cgImage {
                  context?.draw(emoji , in: CGRect(x: toPoint.x , y: toPoint.y, width: 50, height: 50))
  
  
              }
              topImageView.clipsToBounds = true
              
             
              topImageView.image = UIGraphicsGetImageFromCurrentImageContext()
              topImageView.alpha = 1.0
              UIGraphicsEndImageContext()
                         
          }
  </code></pre>
  <p><a href="https://i.stack.imgur.com/puN0H.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/puN0H.jpg" alt="enter image description here" /></a></p>