Developing Mac Apps for Touch
Design for touch on Mac (via Jeff Nadeau):
Discover the key design considerations for updating your app for touch on macOS. We’ll explore the touch gestures now available on Mac, how system gestures work, how to size controls and touch targets while keeping your app great with a pointer and keyboard, and how to adapt hover interactions. Finally, we’ll dive into the expansion behaviors of native controls like steppers, dials, and sliders, and what that means for your app.
Discover how to add touch capabilities to your Mac app. Explore how to transition from classic mouse tracking APIs to modern gesture recognizers and touch-native controls. Find out how to optimize hit targets, implement multi-touch interactions, and manage system gestures to deliver an incredible touch experience. To get the most out of this session, watch Design for Touch on Mac.
Discover how to drive Live Activities from your Mac app. Explore how Live Activities appear in the menu bar and Dynamic Island. Learn how to define your data model, create compact and expanded views with SwiftUI, and drive interactive updates using App Intents.
Written documentation is “coming soon.”
Previously:
- MacBook Pro (PROLED XDR Display)
- Golden Gate Release Candidate
- macOS Touch
- Big Sur Not “Preparing” for Touch Macs
Update (2026-10-29): See also: Hacker News.
On a Mac with a touch display or a Sidecar-connected iPad, AppKit emulates mouse events from touch, so existing games can receive touch input with little or no code change. This guidance focuses on configurations common in games, such as an app with a single view backed by a
CAMetalLayer. For more information about touch support in AppKit, including the view hierarchy and hit-testing mechanism, see Handling AppKit gestures.
Another app development tidbit for the new MacBook Pro: the bottom screen corners on this Mac are rounded, and AppKit prefers to keep your window corners concentric with the display instead of clipping them.
For content inside the window, you can use APIs like
NSView.LayoutRegion,UIView.LayoutRegion,GeometryProxy.containerCornerInsets, andcontainerCornerOffsetto easily constrain your layout against the changing radius.
In the developer videos today, I got the impression that full as-seen-on-MacBook-Pro touch support won’t be available in macOS until 27.3, and the APIs for it are in ‘the next SDK’. Indeed, a lot of the behaviors they showed today are not present when using 27.2 via Sidecar
I saw a post about the incredible engineering effort that went into retrofitting multitouch support into AppKit’s creaky old event handling, and while that was undoubtedly good work by talented engineers, it’s also a massive expansion of potential bug surfaces in one of the few remaining stable parts of the OS left over from the days when Apple’s quality control was still pretty decent
macOS & iPadOS are on a collision course, no matter what the party line is. Both these platforms now have to solve the same problems for the same input devices, and they’re making the same choices for how to approach it pretty much every time.
[…]
I’m more convinced than ever that there is a future where you run AppKit apps on iPad. I don’t know how long it’s going to take for us to get there, but what I don’t think it will be is just putting macOS on iPad. There’s a successor to iPadOS and macOS both, with a completely shared userland, that’s waiting to be born.
Previously:
10 Comments RSS · Twitter · Mastodon
From watching these videos, they make it clear that anything that you can do with a touch screen is also supposed to be possible with a trackpad or magic mouse. So straight away they're implying that the touch screen is superfluous. I'm also reading between the lines and seeing that part of the UI redesign that came with Big Sur and Tahoe, where they made everything *a lot* less space efficient, was so that touch targets could be bigger.
So basically, they messed up a significant part of macOS's UI in order to support an superfluous input method that will only be possible on a small subset of macs. And that's even after Microsoft demonstrated that making a UI that can be used by both mouse and touch screen was a bad idea.
Who is this touch screen for? What problem is it solving? Why would anyone want to use it?
I know a small percentage of users in certain professional fields, like lighting engineers or people working with DAWs, will like to be able to adjust multiple controls at once with touches. But I don't see how this benefits anyone else.
"Design for touch on Mac" — I am starting to get confused about the design. I was pleasantly surprised when the Icon Composer added up/down arrow support for numeric textfields without showing any stepper. There is even support for dragging to change the value. In the session, they mention that if the UI doesn't show controls, there should be, e.g., a menu action to achieve the same action. The Icon Composer has so many hovering actions in the attribute panel (reset icon, + add shadow, delete) without the ability to select a row. And right-clicking (or touch and hold) on everything to discover actions is a horrible design.
@Bri You wrote my thoughts. macOS is now cursed with goofy oversized NSToolbar buttons and other big controls for Touch novelty. Buy a 16" display to get the information density of a 13" display.
I expect Touch screens to trickle down to the low end as a +$300 markup, but if the iPad Mini and 60Hz is any indication we could be waiting 5 years. So touch is always going to be a minority feature limited to specific laptops, but it screws up macOS for everyone. It's the TouchBar all over again.
I'm unimpressed with the tech talks. More developer obligation and framework churn. I'd like to see real Apple apps like Pages or Xcode with the challenges and solutions they used for Touch support over Demoware.
> More developer obligation and framework
I'm supposed to take out all my -mouseDown: overrides and move to gestures for this? I won't be rushing to do that anytime soon.
Just translate that mouse down into a tap for me Apple. I think that will be "good enough." We have to pay more for these Macs for this dumb feature nobody is going to use.
I wonder if touch will trickle down (and up to say, Studio Display) sooner than later and for a lower premium than $300 — OLED isn't necessary for touch screens. By now, the actual touch screen tech is probably super cheap (it was on the iPod Touch, for example).
Yeah, Liquid Glass's odd spacing was probably about touch targets (as I've been saying). It probably also looks better on the Duo.
Most of us have accidentally tried to press a 'submit' button with our finger on our laptop screen. This would make learning how to use a computer easier if you've grown up on touch devices (i.e. their smartphones)... will be interesting to see where it goes.
"I know a small percentage of users in certain professional fields, like lighting engineers or people working with DAWs, will like to be able to adjust multiple controls at once with touches."
Do you mean LX programming, or busking? Digital mixing?
Every modern lighting and sound console has a small-to-medium sized touchscreen, and acres of physical controls in front of that. Even the LDs I know who use that software on a stock touchscreen PC will connect a fader wing, and use that for pretty much everything except naming channels.
Nobody's using the touchscreen on a console "to adjust many controls at once". That's what the faders are for. The touchscreen is basically just a convenient pointing device that doesn't require space for a desk or mousepad.
Dear lord, that corner animation in the Nadeau video 🤦♂️🤦♂️🤦♂️
What the fuck are these people smoking in there?
"Written documentation is 'coming soon.'"
I saw a comment earlier on Mastodon saying how Apple's documentation used to be excellent, and it reminded me of how Led Zeppelin were an outstanding live act up to IV but then afterwards became increasingly infamous for their sloppiness onstage. Though their albums still remained excellent. Kinda like how Apple still makes excellent hardware but "onstage" their software is increasingly slapdash. Let's hope we don't see their hardware equivalent of "Hot Dog" anytime soon (well, unless HomeView counts).
@Léo It's horrible. Another dumb design that only NuApple could do.
I want to go out of my way to not support this stupidity as a protest. Web Apps won't deal with it, so why should we?
I don't understand why they had to make such a huge corner radius in the hardware? Current Pros already have a top corner radius that works well with the current window corner radius. I'm guessing this is a remnant of Alan Die that they couldn't change late in production, and I hope they remedy it next year.