Menu

Four lessons from building a handwriting notes app for iPad
📰

Four lessons from building a handwriting notes app for iPad

DEV Community: ios·Nathan Rischling·3 days ago
#ijq8dLlc
#devtoios#devto#dev#doc#strokes
Reading 0:00
15s threshold

I've been building GraphNotes , a notes app for iPad, iPhone Duo, and Mac where handwriting, PDF highlights and typed notes share one library. Two rules shaped most of its technical decisions:

The ink is the note. The app reads your handwriting so it can search it, but it never swaps your strokes for its guess at what they say.

Every thought keeps its way back. A note written beside a highlighted passage stays linked to that exact passage, and links point at permanent IDs, never at titles.

It's built with SwiftUI (and UIKit where touch handling needs it), PencilKit, SQLite (libSQL through a fork of GRDB) and CloudKit's CKSyncEngine . Here are four things that took me longer to get right than I expected, in case they save you some time.

1. Give every stroke an identity (PencilKit already has one)

It's tempting to spot new strokes by comparing drawing.strokes.count .…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.