News for hackers. Stuff that matters.
Re:Swift 6 by cageface on Tuesday September 17, 2024 @11:55PM (#41575623)
UIKit is pretty fast although a major step down in dev velocity.

AppKit on the other hand seems to be pretty intrinsically slow and the controls are looking increasingly dated.

Re:Swift 6 by fingerlocks on Wednesday September 18, 2024 @04:03AM (#41577059)
Odd criticism.

UIKit is the iOS counterpart to MacOS’s AppKit and both are implemented as convenience wrappers around CALayers. They are also infinitely customizable. You can overload UI/NSView and draw vector-pen style on a blank canvas or render whatever you want on a GPU frame buffer. This is how MapKit, Safari, and the Camera view is implemented.

Re:Swift 6 by cageface on Wednesday September 18, 2024 @04:31AM (#41577261)
It’s a criticism from recent experience trying to build AppKit based UI. The examples you list barely use the stock widgets.

There’s decades of accumulated cruft in Cocoa that Apple discarded when implementing iOS.

Re:Swift 6 by vor_ on Friday September 27, 2024 @12:29AM (#41666259)
Not sure what you mean by "implemented as convenience wrappers around CALayers," especially when it comes to NSView where you have to opt-in to layer-backing.