AppKit equivalent for ControlSize.extraLarge

Since macOS 14 there is a ControlSize.extraLarge in SwiftUI, however there is no corresponding AppKit NSControl.ControlSize.extraLarge, which seems weird.

Surely this is an oversight?

Answered by Frameworks Engineer in 769927022

The macOS design system doesn't have the concept of an 'extra large' control size, so NSControl.ControlSize doesn't expose a case for it. SwiftUI controls automatically map .extraLarge to .large where necessary on macOS, so it's fine to use in multi-device views if you really want .extraLarge on another device.

Accepted Answer

The macOS design system doesn't have the concept of an 'extra large' control size, so NSControl.ControlSize doesn't expose a case for it. SwiftUI controls automatically map .extraLarge to .large where necessary on macOS, so it's fine to use in multi-device views if you really want .extraLarge on another device.

AppKit equivalent for ControlSize.extraLarge
 
 
Q