Avoiding lockFocus when drawing images in Swift on macOS

Apple’s recommendation is to avoid lockFocus if you’re not creating images directly for the screen. Here are some examples from my own Swift scripts. You can use this to draw text into an image, and to resize images.
 •  0 comments  •  flag
Share on Twitter
Published on July 29, 2020 04:00
No comments have been added yet.