Taking a screenshot of user defined area in swift macOS

Viewed 347

I am developing a macOS app which requires the user to select an area of the screen and then the area(screenshot) is converted to an image.

Right now I can’t seem to find a way to let the user draw the rectangle which allows the user to select the region of which to take the screenshot.

Although there are a lot of sources stating how to take screenshot on iOS, the same can’t be said for macOS.

enter image description here

0 Answers
Related