L
L
Lorem Ipsum2021-04-17 15:22:17
Swift
Lorem Ipsum, 2021-04-17 15:22:17

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

1 answer(s)
A
Alexey Golovin, 2021-04-18
@dadduUrsa

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 question

Ask a Question

731 491 924 answers to any question