UIKit and AppKit still share a lot of concepts. Apple says:
AppKit contains all the objects you need to implement the user interface for a macOS app—windows, panels, buttons, menus, scrollers, and text fields
They also say that UIKit is used to implement the user interface:
UIKit provides the window and view architecture for implementing your interface
So what's the main difference between these two framework?