iOS engineering

Behind the theatre diary

A time printed on a ticket, a photo taken in the lobby, a light on a miniature stage. Three decisions inside the iOS app.

Vision · Foundation Models

Reading the evening performance

Vision reads the ticket on the device. StageLight ranks likely titles using both recognition confidence and the height of the lettering. On supported devices running iOS 26 or later, Foundation Models can also extract the curtain time. We check the entire clock expression against the scanned text before keeping it.

A ticket that reads 7:30 PM supports 19:30. A suggestion of 07:30 leaves the time field empty.

UIKit · JPEG

Keeping a program in proportion

Before saving a photo, UIKit redraws it with a 2,400-pixel limit on the long edge. Both sides scale together, and smaller images keep their dimensions. We encode the result as a JPEG at quality 0.85 and write it atomically in a background task.

A 4,032 × 3,024 program photo becomes 2,400 × 1,800. Every corner of the cover stays in the frame.

MiniTheatreCore · SwiftData

One spotlight for the third visit

Mini Theatre counts distinct visit IDs through today in the current time zone. Its Swift rules package checks the prop catalog against milestones already awarded. SwiftData saves each new award before the companion shows it.

Three visits unlock the golden spotlight. Opening the diary again with the same three visits leaves one spotlight on the shelf.

Remember the show. Share the moment.

Start your private theatre diary and make your first memory card.

View StageLight on the App Store