Transform CalcText from a single-document calculator into a full workspace application with multi-document support, theming, and responsive mobile experience. - Theme system: 5 presets (Light, Dark, Matrix, Midnight, Warm) + accent colors - Document model with localStorage persistence and auto-save - Tab bar with keyboard shortcuts (Ctrl+N/W/Tab/1-9), rename, close - Sidebar with search, recent, favorites, folders, templates, drag-and-drop - 5 templates: Budget, Invoice, Unit Converter, Trip Planner, Loan Calculator - Status bar with cursor position, engine status, dedication to Igor Cassel - Results panel: type-specific colors, click-to-copy, error hints - Format toolbar: H, B, I, //, color labels with live preview toggle - Syntax highlighting using theme CSS variables - Error hover tooltips - Mobile: bottom results tray, sidebar drawer, touch targets, safe areas - Docker multi-stage build (Rust WASM + Vite + Nginx) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
38 lines
976 B
Swift
38 lines
976 B
Swift
// swift-tools-version: 5.9
|
|
|
|
import PackageDescription
|
|
|
|
// Path to the Rust static library built by `cargo build --release`
|
|
let rustLibPath = "../target/release"
|
|
|
|
let package = Package(
|
|
name: "CalcPad",
|
|
platforms: [
|
|
.macOS(.v14)
|
|
],
|
|
targets: [
|
|
.systemLibrary(
|
|
name: "CCalcPadEngine",
|
|
path: "Sources/CCalcPadEngine"
|
|
),
|
|
.executableTarget(
|
|
name: "CalcPad",
|
|
dependencies: ["CCalcPadEngine"],
|
|
path: "Sources/CalcPad",
|
|
linkerSettings: [
|
|
.unsafeFlags(["-L\(rustLibPath)"]),
|
|
.linkedLibrary("calcpad_engine"),
|
|
]
|
|
),
|
|
.testTarget(
|
|
name: "CalcPadTests",
|
|
dependencies: ["CalcPad"],
|
|
path: "Tests/CalcPadTests",
|
|
linkerSettings: [
|
|
.unsafeFlags(["-L\(rustLibPath)"]),
|
|
.linkedLibrary("calcpad_engine"),
|
|
]
|
|
),
|
|
]
|
|
)
|