-
What's new in AppKit
Explore the latest advancements in Mac app development with AppKit. We'll show how you can enhance your app's design with new control features and SF Symbols 3, build powerful text experiences using TextKit 2, and harness the latest Swift features in your app.
Ressources
Vidéos connexes
WWDC21
-
Rechercher dans cette vidéo…
-
-
4:18 - Determining a button's background style
class NSButtonCell { /* Use to adjust your drawing for the underlying state of the bezel Returns .normal for colorless states Returns .emphasized for colorful/emphasis states */ var interiorBackgroundStyle: NSBackgroundStyle } -
14:40 - Pick a color
@IBAction func pickColor(_ sender: Any?) { Task { guard let color = await NSColorSampler().sample() else { return } textField.textColor = color } }
-