Answer the question
In order to leave comments, you need to log in
How to draw on UIImage?
Hello. Figured out the draw(_ rect: CGRect) method and drawing lines on a UIView. But I can't figure out how to implement drawing on UIImage or UIImageView. Suppose the user has selected a photo from the gallery or taken it through the camera, then he gets to the controller with the ability to draw some simple lines on this image and get an edited UIImage? It was not possible to google the solution, how can this be implemented? Thanks in advance for your replies
Answer the question
In order to leave comments, you need to log in
Hey!
Well, since you drew on the UIView, why not try to put the view on the ImageView and do whatever you want with it? )
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question