A minimal example for a Mac Catalyst app that accesses AppKit API using a macOS plugin, and completely written in Swift.
For more details and instructions, please refer to the original post on how to access AppKit API from Mac Catalyst apps.