Blog· News·

Touch on Mac: what Apple asks developers to do for the touchscreen MacBook Pro

Apple has published its developer material for Touch on Mac, including the replay of its Group Labs: gesture recognizers, 36-point hit targets, system gestures and a new Info.plist key. What to change in your Mac app, and how to start with the Xcode 27.3 beta on any Mac.

A large glossy violet arrow pressing down on a white rounded panel that ripples in soft rings, next to a compact silver mini desktop computer

For the first time, a Mac has a screen you can touch. The MacBook Pro with PROLED XDR Display, in 14 and 16 inches with the M5 Pro or M5 Max chip, has a touch sensor built into the display panel, and Apple’s product page describes what people will do with it: scroll, pinch, rotate and draw, right on the screen.

For developers, Apple has gathered everything in one place, a page called Get ready for Touch on Mac. It has two technical videos, the documentation, the design guidelines and, since the Group Labs held on November 18 and 19, a replay of the session where Apple’s engineers and designers answered questions. If you make a Mac app, this is the moment to go through it. Here is what the material says, and how to start.

What Apple published

The page is short and has three parts.

  • Videos. “Design for Touch on Mac” covers the design side, “Bring Touch to your Mac app” the code. A third video, “Bring Live Activities to Mac”, sits next to them.
  • Meet with Apple. The replay of the Touch on Mac Group Lab, which Apple describes as insights from its engineers and designers about creating and optimizing apps for Touch on Mac.
  • Tools and documentation. The Xcode 27.3 beta, with the SDKs to build, run and test your app; an article on adopting gesture recognizers and a sample project on drag and drop; and the Human Interface Guidelines pages on designing for macOS, gestures and pointing devices.

The design side: touch without losing the pointer

The design video goes through six topics: touch interactions, custom gestures, system gestures, optimizing your interface, hover actions, and expanding controls.

One sentence in its description sums up the approach: size your controls and touch targets “while keeping your app great with a pointer and keyboard”. A Mac with a touch screen still has a trackpad and a keyboard, and people will move between the three without thinking. So this isn’t an iPad version of your app. It is the same Mac app, with nothing that only a mouse can reach.

Two of the topics deserve a look at your own app before you watch:

  • Hover. Anything that appears only when the pointer rests on it, such as a button that shows up on a row or a tooltip that carries real information, needs another way in. A finger doesn’t hover. The video has a chapter on how to adapt these interactions.
  • Native controls. Steppers, dials and sliders have what Apple calls expansion behaviors on a touch screen, and the video explains what they mean for your layout. If you drew your own versions of these controls, compare them with the system ones.

The code side: five changes to plan for

The engineering video, “Bring Touch to your Mac app”, describes its subject as the move “from classic mouse tracking APIs to modern gesture recognizers and touch-native controls”. Its chapters and code samples give a clear list.

1. Replace mouse tracking with gesture recognizers and control events

Code that follows the mouse by hand, with mouse-down, mouse-dragged and mouse-up events, is the code to revisit first. The video shows controls using tracking events instead, and gesture recognizers for everything else. A recognizer can be limited to fingers: the sample sets allowedTouchTypes to .direct on an NSPanGestureRecognizer, so the same view can treat a finger and a pointer differently when it needs to.

2. Make hit targets at least 36 points

A fingertip is less precise than a pointer. The sample code for hit targets expands them to a minimum of 36 points on each axis. Note that this is about the area that answers the touch, not about making every button look bigger: a small icon can keep its size and still accept touches around it.

3. Decide how scrolling and simultaneous gestures behave

Two settings appear in the samples. minimumNumberOfTouchesForScrolling lets a view ask for two fingers to scroll, which leaves one finger free for drawing or selecting inside a canvas. exclusiveGestureBehavior, set to .notExclusive, lets two controls be used at the same time, for example two sliders moved with two fingers, as on a mixing desk.

4. Turn off system gestures where your app needs the whole surface

macOS has its own touch gestures, and the design video has a chapter on how they work. An app that needs every touch for itself, such as a drawing canvas, an instrument or a game, can turn them off, and there is a way to do it in each framework:

  • AppKit: disablesDirectTouchSystemGestures on the window.
  • SwiftUI: the directTouchSystemGesturesDisabled() modifier on a view.
  • Mac Catalyst: prefersDirectTouchSystemGesturesDisabled on a view controller.

So the three ways of building a Mac app are all covered: AppKit, SwiftUI and Mac Catalyst.

5. Declare touch-native support in Info.plist

The last chapter before the closing one is titled “Declare touch-native support in Info.plist”, and the sample is a single key:

<key>NSIsTouchNative</key>
<true/>

As the chapter title says, it declares that your app supports touch natively. Add it when the rest of the list is done, and watch that part of the video for what the system does with it.

How to start this week

You don’t need to wait for anything to begin, and most of the list is ordinary engineering work that you do in Xcode.

  1. Watch the two videos and the Group Lab replay. Together they are the specification. The replay is worth it for the questions other developers asked.
  2. Install the Xcode 27.3 beta. It’s on Apple’s developer website, and it installs as a separate app next to the release version, so your current work isn’t disturbed. Our article on the Xcode 27.3 beta covers what else is in it.
  3. Audit your app. Search the project for mouse tracking code, list every control smaller than 36 points, and write down every feature that depends on hover. That list is your plan.
  4. Make the changes behind the same interface. Gesture recognizers and control events work with a pointer too, so each change can ship in a normal update and be checked with the trackpad and the keyboard as you go.
  5. Send a build to TestFlight. A tester with a MacBook Pro with PROLED XDR Display can install it and tell you how it feels under a finger, wherever they are.
  6. Add the Info.plist key when the audit list is empty.

Start with the first four now. An app that has already moved from mouse tracking to gesture recognizers will need far less work on the day you try it on a touch screen.

What it means if you build on a rented Mac

Mac apps are built with Xcode, and Xcode runs on macOS: that part doesn’t change. What changes is that there is a new beta to install and a new list of things to check, and both fit a Mac in the cloud well.

  • The beta stays off your main machine. If your own Mac is the one you ship from, a second Mac is a calm place for a beta Xcode and a branch full of input changes.
  • Any Mac with the beta does the code work. Adopting gesture recognizers, expanding hit targets, adding the SwiftUI modifier or the Info.plist key and building the app are the same on a Mac mini as on any other Mac. You connect by remote desktop, with the trackpad and keyboard of the computer in front of you, which is exactly the pointer-and-keyboard check the design video asks you to keep passing.
  • If you work on Windows or Linux, for example on a Mac Catalyst app that comes from an iPad project or on a cross-platform app with a Mac target, the cloud Mac is where the Mac build happens anyway. Touch on Mac adds a short checklist to that build, not a new machine on your desk.
  • TestFlight closes the loop. You upload from the Mac you rent; your testers install on the Macs they own.

A SoloRack Mac mini M6 comes with the current macOS, 16 GB of memory, a 256 GB SSD and your own administrator account, so installing a beta Xcode next to the release one is your call, with no one to ask. Before a rental ends, remember that your account and its files are deleted with no copy kept: push your branch and export your signing certificates first, as our reminders tell you in time.

The short version

  • What’s new: the MacBook Pro with PROLED XDR Display is the first Mac with a touch screen, and Apple’s developer page for Touch on Mac now includes the Group Lab replay.
  • What to change: gesture recognizers and control events instead of mouse tracking, hit targets of at least 36 points, a decision on scrolling and system gestures, another way in for hover, and the NSIsTouchNative key at the end.
  • What stays: pointer and keyboard. The goal is one Mac app that works well with all three.
  • Where to start: the Xcode 27.3 beta, on any Mac.

A Mac for the beta, ready in minutes

If you’d rather not put a beta on the Mac you depend on, or you don’t have a Mac at all, rent a dedicated Mac mini M6 from SoloRack, from $3.73 a day on the monthly plan ($112 a month), with your own admin account, remote desktop and SSH. See the plans on our pricing page and have your app building against the new SDK today.

Sources

Try SoloRack from ⁦$3.73⁩ a day

A dedicated Mac mini M6 on the monthly plan: ⁦$112⁩ a month. Prices in US dollars, VAT included where it applies.

Before you pay

The email you enter on the payment page becomes your account: you sign in to My account with that same address.

Payment is handled by Stripe through Link, its payment service: the payment page shows Link's name, and your bank statement will show LINK.COM* SOLORACK.

They show us how the site is used, including recordings of your visit; what you type stays hidden (PostHog, Google Analytics). These tools use cookies and start only if you say yes. You can change your mind at any time from the bottom of the page. If you say no to statistics, we only count your visit, without cookies. Cookie policy