Indian software company · Freelance
A Tamil keyboard for iOS, shipped in a month
As the sole iOS developer on an urgent freelance project, I built a handwriting-style Tamil keyboard — word suggestions, voice typing and all — inside iOS’s tight keyboard memory limit.
- Company
- Indian software company · Freelance
- Role
- Sole iOS developer · Freelance
- Timeline
- 2 months · 2025
- Platform
- iOS · Keyboard extension
Overview
A Tamil keyboard for iPhone that lets people type the way they write by hand: letter by letter, in handwriting order, with every Tamil letter on one fixed layout. The client needed it urgently, so as the sole iOS developer on a freelance contract I committed to releasing the MVP within one month, then delivered a second phase and bug fixes in the second month. I built the iOS foundation the following versions grew from.
The challenge
A custom keyboard runs as an iOS extension with a tight memory budget, and iOS ends it without warning if it goes over. Within that budget it had to lay out more than 300 Tamil letters on keys that adapt to every screen, turn letters typed in handwriting order into correct Tamil text, suggest words with a custom on-device ML model, and offer voice typing — which keyboard extensions can’t do directly, because Apple doesn’t give them microphone access.
What I did
- Built the iOS app from scratch as the sole iOS developer: a SwiftUI main app and the keyboard extension itself.
- Released the MVP within one month for an urgent launch, then delivered a second phase and bug fixes in the second month.
- Built a keys UI builder that generates the whole layout from data in a loop, reusing views and loading lazily so it stays light on memory.
- Researched touch targets: keys stay visually small so every letter fits, while their touch areas are larger, so typing stays accurate.
- Wrote the algorithm that composes Tamil letters typed in handwriting order into correct text.
- Integrated the client ML team’s custom word-suggestion model on-device, within the keyboard’s memory budget.
Approach
- 1
Know when to drop SwiftUI
I first built the keyboard in SwiftUI, but inside the extension it crashed frequently. I rebuilt it programmatically in UIKit with RxSwift, which gave precise control over views and memory, and kept SwiftUI for the main app, where it shines.
- 2
A keys UI builder, not hand-placed keys
The layout is generated from data in a loop rather than drawn by hand, so keys adapt automatically to each screen size. Views are reused and heavier pieces load lazily, keeping memory flat as more than 300 letters come and go. Visible keys stay small, but each one’s touch area is larger than it looks.
- 3
An algorithm for handwriting order
People write some Tamil letters with the vowel sign first — for கோ they write ே, then க, then ா. A composition algorithm turns that handwriting order into the correct Unicode text, so the keyboard follows the writer instead of forcing a new habit.
- 4
Voice typing by working with the platform
Apple doesn’t allow microphone access inside a keyboard extension. Taking inspiration from Google’s keyboard, I moved voice typing into the keyboard’s main app; once dictation finishes, the text is copied and pasted back automatically, so it still feels like part of the keyboard.
Architecture
Results
1 month
From start to MVP release
2
Phases delivered in two months, plus bug fixes
Low
Crash reports, with every feature inside the memory limit
Stack
- Swift
- UIKit
- RxSwift
- SwiftUI
- Keyboard extension
Takeaway
“Keyboards are a harsh environment: every megabyte counts and the platform sets hard rules. Knowing when to drop SwiftUI for UIKit, and moving voice typing into the main app instead of fighting the platform, is what made a one-month MVP possible.”