尚未偵測到更新。GitHub 發布版本後會顯示在這裡。
個人 GitHub 帳號下公開儲存庫的擁有者可以登入並驗證所有權,自行管理介紹,無需管理員核准。
登入並產生驗證檔案,在 30 分鐘內將其提交至此儲存庫的預設分支。其他分支或分叉儲存庫中的檔案無效。然後在下方檢查檔案,即可無需管理員核准直接管理專案。請保留檔案以維持管理權限。
如需登入,將前往登入頁面。登入後請回到此處,再次點擊所選的驗證按鈕。
在專案資料夾中執行 /nomorevibe verify,即可驗證所有權並自行管理介紹。
一分鐘完成驗證kchengg1/settled
翻譯準備中
取自儲存庫 README
正在載入完整 README。 以下為已儲存的摘錄。
Split a dinner bill from a photo of the receipt — fully on-device, no cloud, no accounts. See PLAN.md for the full project plan.檢視完整 README ↗Split a dinner bill from a photo of the receipt — fully on-device, no cloud, no accounts. See PLAN.md for the full project plan.
Status: Milestones 1–4 complete. The full loop from PLAN.md works: scan (VisionKit camera or photo import) → on-device OCR + parsing with low-confidence flags and a printed-subtotal checksum → people → assignment → tip & tax → exact per-person totals → share to the group chat → saved to local history (SwiftData). Names from past bills come back as one-tap suggestions. The shared-expense expansion in EXPANSION_PLAN.md is complete through Milestone 11: a people directory with me, groups with a ledger of expenses and recorded payments, rich expenses (multi-payer, adjustments, per-currency balances, categories, notes, receipt photos, recurring), the receipt-to-group bridge, friends with settle-up hand-offs and reports, and sharing a group either as a file or live through iCloud.
Screenshots of the current build live in docs/screenshots/ (regenerate with the
Screenshots workflow; tick "commit" to refresh them in the repo).
SettledCore/ SwiftPM package: models, Money helpers, SplitEngine, the group
ledger (ExpenseGroup) and SettlementEngine + tests.
Pure Swift, no UI — this is where correctness lives.
App/ SwiftUI app sources (iOS 17+).
project.yml XcodeGen spec that ties the two together.
Run the core tests — no Xcode project needed:
cd SettledCore && swift test
Build the app:
brew install xcodegen # once
xcodegen # generates Settled.xcodeproj
open Settled.xcodeproj
Then run the Settled scheme on an iOS 17+ simulator or device.
No XcodeGen? Create a new iOS App project in Xcode (SwiftUI, iOS 17 minimum), delete its template source, add the App/ folder to the target, and add the local SettledCore package via File → Add Package Dependencies → Add Local.
The Release to TestFlight workflow archives, cloud-signs, and uploads the
app to App Store Connect entirely on CI. One-time setup:
.p8.ASC_KEY_ID — the key's IDASC_ISSUER_ID — the issuer IDASC_PRIVATE_KEY — full contents of the .p8 fileAPPLE_TEAM_ID — your 10-character Team ID (developer.apple.com →
Membership)com.kchengg1.settled (register the bundle ID at
developer.apple.com → Identifiers first if it isn't offered).Then run the workflow from the Actions tab (or push a v* tag). The build
appears in TestFlight after Apple's processing (~5–15 min); install it on
your phone from the TestFlight app.
Groups are local until someone shares one. "Share live with iCloud" stores that
group in the user's own iCloud, not a server of ours, and invites people
through Apple's sharing screen; everyone edits the same ledger and changes
reconcile with the same merge that the .settled file import uses.
One-time setup in the Apple developer account, needed before a signed build (the simulator build on CI doesn't check entitlements):
com.kchengg1.settled App ID → enable iCloud.iCloud.com.kchengg1.settled, and
tick it for that App ID.If the container doesn't exist, Release to TestFlight fails at the signing
step with a provisioning error — create it first, then re-run the workflow.
project.yml generates the entitlements file, so nothing else needs editing.
All money is integer cents. Every division goes through one function —
SplitEngine.apportion(_:weights:) — which uses the largest-remainder method:
floor each proportional share, then hand leftover cents to the largest
fractional remainders. Two invariants hold everywhere (and are fuzz-tested
over 20,000 cases):
Shared items split by per-person weights (weights 2:1 give a two-thirds/one-third split); tax and tip are prorated proportionally to each person's item subtotal, or evenly, per the user's choice. Discounts are just negative line items and split with the same fairness as charges.
Everything is on-device — no cloud, no accounts:
VNRecognizeTextRequest (accurate mode, language
correction off — it "fixes" prices) returns text with bounding boxes.ReceiptParser (in the core package, fully unit-tested) clusters
observations into visual rows by vertical midpoint — receipts are columnar,
so a row may be a name and a price observation — then classifies each row:
trailing-amount extraction (tax-code suffixes, parenthesized discounts,
comma decimals), explicit quantities ("2 x"), and keyword lines
(SUBTOTAL/TAX/TIP/TOTAL captured separately; payment lines like
VISA/CHANGE ignored).