- Core Haptics
- iOS
- Design
Designing a tap you can feel
What building Buzzle taught me about Core Haptics, and why a vibration deserves the same design care as the pixels.
Muhammad Zhafran
Introduction
When we started Buzzle at the Apple Developer Academy, we gave ourselves a simple brief: a short break from a busy day that you don't have to read. That ruled out most of what calm apps lean on, like text, guided breathing, and mood logs. What was left was touch.
The vibration is part of the design
In Figma, a tap is a state change: pressed, released, done. On a phone, a tap is also something you feel. Most apps treat that feeling as an afterthought and reach for a generic impact. In Buzzle the vibration was the product, so it needed the same care as the layout and the type.
The question we kept coming back to wasn't "does this look right?" but "does this feel like popping something?"
Two building blocks
Core Haptics gives you two kinds of events. A transient event is a single short tap. A continuous event is a sustained vibration that lasts as long as you tell it to. Both are shaped by two parameters: intensity, which is how strong it feels, and sharpness, which runs from a soft, round thud to a crisp click.
A pop turned out to be a combination of the two: a short, soft swell as the sphere gives way, then a sharp transient at the moment it bursts.
let swell = CHHapticEvent(
eventType: .hapticContinuous,
parameters: [
CHHapticEventParameter(parameterID: .hapticIntensity, value: 0.4),
CHHapticEventParameter(parameterID: .hapticSharpness, value: 0.2),
],
relativeTime: 0,
duration: 0.12
)
let pop = CHHapticEvent(
eventType: .hapticTransient,
parameters: [
CHHapticEventParameter(parameterID: .hapticIntensity, value: 1.0),
CHHapticEventParameter(parameterID: .hapticSharpness, value: 0.8),
],
relativeTime: 0.12
)
let pattern = try CHHapticPattern(events: [swell, pop], parameters: [])
let player = try engine.makePlayer(with: pattern)
try player.start(atTime: CHHapticTimeImmediate)Each sphere in Buzzle gets its own pattern, so different spheres feel different in your hand, even with your eyes closed.
Motion has to agree with the vibration
A haptic feels wrong when it doesn't match what you see. We prototyped the sphere animation in SpriteKit so the spheres move with weight, then lined the haptic up with the moment a sphere visibly gives way. A pop that lands a few frames early or late reads as a glitch, not a pop.
Test it in people's hands
The iOS Simulator can't play haptics, so every change meant a build on a real device. We put TestFlight builds in people's hands and watched how they tapped. The haptic patterns got another round of tuning in the 1.0.1 update because of it.
What I'd tell another designer
- Design the feel early, next to the visuals, not after them.
- Keep patterns short. A long vibration starts to feel like a notification.
- Respect the device and the person. Check
CHHapticEngine.capabilitiesForHardware().supportsHaptics, and make sure the app still works for someone who has turned system haptics off.
Buzzle is on the App Store if you want to feel the result.