Up-to-date documentation on Cocoa drawing

I'm trying to create image files at runtime by composing vector image assets on MacOS, and I've never done any custom drawing before. There is a lot of documentation out there about the latest frameworks like SceneKit and so on, but I'm having a lot of trouble finding up-to-date documentation about simple drawing, using Swift for code samples and on MacOS, not iOS. Wherever I look, I keep coming back to this Introduction to Cocoa Drawing but it hasn't been updated since 2012, all the sample code is in Objective-C and I'm not even sure that it's still relevant since the first page explicitly states that "This document is no longer being updated."


Is there a more up-to-date version of this document somewhere in Apple's documentation, or any online course, book or other resource you would recommend for an absolute Core Graphics newbie, that just wants to understand what he's doing instead of copy/pasting code from StackOverflow?