I did macOS development with AppKit from 2003-ish through 2012, then iOS with UIKit since. It's not that one's better than the other, UIKit is just newer. It wasn't clean-roomed, it was heavily inspired by the best parts of AppKit. Since then, many of the best parts of those changes have been fed back, yet again, into AppKit (view-based table views, view controllers, layer-backed views, CoreAnimation, etc).
They're built to serve different audiences, just like iOS and macOS they support. macOS and AppKit are designed around multiple windows, side-by-side, with very specific mouse and keyboard navigation conventions. iOS and UIKit are designed around single windows with nested navigation stacks, view controllers and gesture-based navigation. One tool for each job. It's not about replacement.
As always, you can use any API to implement any piece of software. It behooves you to focus on your user and pick the one that lets you provide the best experience. They're the same programming languages and just different accents on the framework. You'll figure it out if you care.