How Carriage is built.

Carriage is a mechanical keyboard app for iPhone, iPad and iPhone Duo. On iPhone, the moment a key bottoms out on the glass, you hear the switch and feel it land.

Carriage’s Q key enlarged, with its dished top shaded on one side and the underlying triangular mesh visible on the other.
Q key / Surface mesh673 vertices

A score for one keystroke.

In Apple’s 2025 trailer for F1, you could hear a gear change and feel it through the iPhone’s Taptic Engine. Apple timed the vibrations frame by frame. About the trailer on Apple TV

Carriage takes that idea down to a single key. A switch recording and a pattern of taps land together when you press, then a lighter pair answers when you lift. In the app’s opening film, First Build, one haptic track plays in step with the picture.

Tactile Q

Keystroke score
↓ Press↑ Release
The recorded Q sounds at press and release. Touch begins with a bump, peaks 10 milliseconds later and returns more softly at release.
Recorded soundTouch intensity
Each dot is a tap. Height shows its strength. Here the finger lifts at 120 ms. On the keyboard, you set that interval.

What a switch feels like.

Carriage stores 36 hand-written scores in Apple’s haptic pattern format (AHAP). Each tells Core Haptics when to tap, how hard, and how sharp the contact should feel.

Linear

One clean stop as the stem reaches the bottom.

Tactile

A bump under your finger, then the bottom 10 ms later.

Clicky

The click bar snaps. The stem lands 13 ms later.

First 20 ms of each press · Taller marks mean stronger taps.

The space bar rattles on its stabilizer wire. Return meets its stabilizer before it bottoms out. Hold a letter and you feel its spring load and unwind. Slide across letters and a separate set of patterns follows the glide all the way to lift-off.

The room a keyboard gets.

A keyboard extension shares your phone with the app you’re typing in. Apple publishes no fixed memory allowance. Carriage asks iOS how much it can use, and the answer depends on the phone.

iOS can keep a keyboard alive for each app you type in. As soon as one leaves the screen, Carriage releases its Metal view, the surface that draws the keys.

Memory allowed for a keyboard

iPhone 13 mini≈77 MB
iPhone 17≈177 MB
The water that follows a glide needs about 6 MB of textures, or 10 MB in HDR. Carriage makes them only when there’s enough memory to spare.

A PlayStation trick for the keys.

The original PlayStation had 2 MB of main memory. Games baked light into the scenery and reused textures across a level. Carriage borrows both ideas to fit inside a keyboard’s allowance.

Light and dark keycaps before the lighting bake, left, and after, right. Softer shadows define the caps’ edges.
Blender lights each key at rest, half pressed and fully pressed. The phone blends those three readings as the cap moves.
One sheet of letters
Every legend shares one texture atlas. Each key picks its letter and tints it. On an OLED iPhone, lit letters can use the display’s extra brightness to glow past paper white.
Two frames in flight
One frame is on screen while the next is drawn. Carriage skips the usual third buffer and smooths the edges inside the graphics chip’s tile memory.
Zero frames at rest
Once the keys and their light settle, the keyboard stops drawing. The finished frame stays on screen until something changes.

Where iOS draws the line.

Full Access
Enable Allow Full Access for Carriage’s recorded switches and haptics in other apps. With it off, iOS supplies the system click. Carriage has no network code either way.
Protected fields
Passwords and phone-number pads bring up Apple’s keyboard. Apps can also opt out of custom keyboards altogether.
Dictation
Custom keyboards have no microphone access. Switch to Apple’s keyboard to dictate.
iPad
You hear each key there. The iPad has no Taptic Engine to play the taps.
iPhone Duo
Only Carriage’s notebook gets the fold position to place the two halves around the hinge. In other apps, a split board uses the middle of the screen.