Cross-platform Swift utilities for Apple platforms — Foundation Core + SwiftUI UI, from a single SwiftPM package.
import MatrixSwiftBaseCore // Helpers let clamped = MathHelper.clamp(150, min: 0, max: 100) try await SleepHelper.milliseconds(250) let token = RandomHelper.string(length: 32) // Networking let client = APIClient(baseURL: URL(string: "https://api.example.com")!) let user: User = try await client.send(.users.me)
.package(url: "https://github.com/rtorcato/swift-common", branch: "main")Core and UI, side by side
Two SwiftPM products. Four Apple platforms. 130+ types organised by what they need at compile time.
Date, math, crypto, currency, JSON, regex, random, mime-type, and more.
Drop-in additions to Array, Bool, Date, Dictionary, Set, URL.
APIClient + Endpoint + typed NetworkError. URLSession under the hood.
Keychain, location, app errors, themes, notifications, file-type enums.
Cards, buttons, containers, web view, QR codes, rating, sticky headers.
Alerts, keyboard, colour, haptics, photo picker, local auth, vision kit.
Animatable font, border radius, pressable button, rounded button, blur.
Image cache, system theme tracking, sound, beacon detection.
Sibling projects
More from @rtorcato — same conventions, same release pipeline.
Tree-shakeable TypeScript utilities — tiny bundles, full type safety, CLI included.
Small, tree-shakeable TypeScript wrappers around 40+ browser Web APIs.
Shared Biome, TypeScript, Vitest and semantic-release presets that power the @rtorcato/* family.