Skip to main content
swift-common

Cross-platform Swift utilities for Apple platforms — Foundation Core + SwiftUI UI, from a single SwiftPM package.

App.swift
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")
Two products, pay-what-you-use
Two products, pay-what-you-use
Core ships Foundation-only utilities. UI adds SwiftUI on top. Import only what you need.
Every Apple platform
Every Apple platform
iOS 16+, macOS 13+, tvOS 16+, watchOS 9+. Multi-platform builds verified in CI.
Modern Swift
Modern Swift
async / await throughout. Sendable-ready. Built on the latest stable toolchain.
130+ utilities
130+ utilities
Helpers, extensions, networking, managers, SwiftUI components, modifiers, and styles.

Core and UI, side by side

Two SwiftPM products. Four Apple platforms. 130+ types organised by what they need at compile time.

View full API →

Sibling projects

More from @rtorcato — same conventions, same release pipeline.