oficina / sheets Public
| apple/ | ||
| ios/ | ||
| macos/ | ||
| scripts/ | ||
| smoke/ | ||
| LICENSE.lucide | ||
| PARITY.md | ||
| PrivacyInfo.xcprivacy | ||
| README.md | ||
| REVIEW.md | ||
| mac-updates.json |
Oficina Sheets for Mac, iPhone and iPad
Entirely native SwiftUI editors use the same authenticated Go calculation, formatting, sealed storage and permission paths as the web application. No embedded browser editor or second formula engine is used.
Build with Xcode 26.6, Swift 6.2+, and XcodeGen:
native/scripts/build-mac.sh
native/scripts/build-iphone.sh simulatorThe macOS bundle is native/build/Oficina Sheets.app. Simulator products are under native/build/ios. Device builds use build-iphone.sh device and require OFICINA_DEVELOPMENT_TEAM and the team's normal signing setup. Simulator and device builds use separate DerivedData directories. OFICINA_SKIP_PROJECT_GENERATION=1 allows the suite runner to generate the project once before starting parallel builds.
The shared native transport and Mac packaging tools are pinned to revision 1e36aac95ed252848722926efc8ba8f9dc803216 of https://amadan.net/rastrillo/native, on its main branch (the merge of native/oficina-id-straight-in: Oficina ID straight in, Paul's ruling of 2026-11-19). The pin is written in apple/Package.swift, apple/Package.resolved, macos/project.yml, macos/SheetsMacStore.xcodeproj/project.pbxproj, ios/project.yml and here. Both SwiftPM and Xcode resolve that revision; no sibling development checkout is required.
Sign-in is Oficina ID first (Home docs/superpowers/specs/2026-11-14-oficina-id-native.md, slice A, with Paul's straight-in ruling of 2026-11-19), through rastrillo/native's RastrilloApple/OficinaID kit: one Oficina ID on the device opens its team with no screen; several ask which; "Use another Oficina ID" is in the account menu. "Other ways to sign in…" keeps the server address and browser approval for self-hosted servers and local accounts; someone already signed in that way keeps those accounts, and nothing goes straight in while that is the route. The server half is POST /native/oficina-id (internal/sheets/home_routes.go).
The kit needs these grants on every build: macos/DeveloperID.entitlements (Sparkle, named by mac-updates.json), macos/AppStore.entitlements, and ios/SheetsPhone.entitlements. Each has keychain-access-groups = 9U4A84C4WK.works.oficina.sheets first, then 9U4A84C4WK.works.oficina.id, the App Group (9U4A84C4WK.works.oficina on Mac, group.works.oficina on iOS) and webcredentials:id.oficina.works. A Developer ID build claiming them without its embedded profile is killed at launch; mac-updates.json names the profile by local path (never committed). A signed build, then the launch gate (spec §13), which must pass on the final notarised artifact before any Sparkle publish:
native/scripts/build-mac.sh --updates-config mac-updates.json \
--sign-identity 'Developer ID Application: Team Tito Limited (9U4A84C4WK)'
"native/build/Oficina Sheets.app/Contents/MacOS/SheetsMac" --oficina-id-launch-checkAn ad hoc or simulator build drops the grants; Oficina ID then cannot read the keychain. SignedInLaunchTests hosts the home window with an Oficina ID already saved and checks it settles (Docs 0.1.7/0.1.8 hung at launch only for people signed in).
The Sparkle build updates quietly, as Calls does: "install": "automatic" in mac-updates.json writes Sparkle's automatic check, download and install keys (no first-launch question), and NativeUpdater(policy: .quiet) keeps scheduled checks from opening a window. A downloaded update installs on quit; the app menu offers "Update Ready — Restart Sheets" and the Home window shows a one-line notice.
Select a cell, then edit its formula bar, double-click, press Return or F2 (these keep the cell's contents), or just type (this replaces them, as in Numbers or Excel). The keystroke that starts typing goes to the cell's own text field, so a dead key (´ then e) or an input method composes from the first key. On iPad and iPhone a hardware keyboard works the same way: while a cell is selected an invisible text field sits on it holding the keyboard (without raising the on-screen one), so arrows, Return, Tab and Delete move and clear, and the first typed or composed text starts the edit in place. Touch editing stays in the formula bar (double-tap a cell). Enter saves and moves down; Tab saves and moves right; Escape discards the focused cell edit. The range field accepts addresses such as A1:C10. Menus provide copy/paste, clear, fill, formatting, size controls, functions, history, comments, sharing and workbook transfer. Sort/filter opens a native table preserving each cell's original reference.
Network content uses ephemeral transport. Requested exports stream to a private temporary workbook and are handed to the system file-save picker; the temporary file is removed on completion, cancellation or failure. Value edits are optimistic: a committed cell shows its value at once and the send happens in the background, one at a time per document, with edits made meanwhile sent together next. A refused or unanswered edit keeps its value on screen with a small red corner mark and offers Retry and Revert (on the cell's context menu and above the grid); editing carries on around it. Window close and Quit wait for edits on their way and ask about failed ones. Edits live in memory until the server has them: they do not survive a crash or quit while offline. The app does not claim offline editing or sealed local document caches.
Current web limits remain visible: a single worksheet, a 500-row/200-column grid window, 500-cell paste limit, first-worksheet XLSX/XLSM import up to 20 MiB, and no undo for formatting or sizing. Formula evaluation and number display come from the Go server. Charts, conditional-format rule editing, structural row/column changes and additional worksheet editing do not exist in the web baseline and are not represented as finished features here.
Verification:
swift test --package-path native/apple
go test ./...SheetsReview and SheetsReviewPhone are separate, unshipped review targets. Their fixture server uses temporary databases and ordinary authenticated sessions. Production entry points never contain fixture credentials. See the native design spec and review records for exercised coverage; compiling a target alone does not establish editing parity.