An example repository to show how to create simple plugin architecture in Cocoa and Swift.
There's a blog post describing the process in a bit more detail.