"Met it wooden 🪵 and made it brickwalled 🧱" (Casimir the Great)
Prebuilt and prepackaged code suite for rapid development using the multiplatform Apple Stack (SwiftUI, Combine, Concurrency)
Some of the features:
- Easy architectural elements, like
ModelProtocol
,Randomable
,Selectable
andLocalizedString
. - Out-of-the-box custom loggers, such as logger for sending diagnostic data to Firebase as non-fatals.
- Custom Combine operators closing the gap with
Rx*
, such asWithPrevious
,PreventCompletion
,Single
,On
orRetry
. - Streamlining API for testing
Publisher
streams usingTestScheduler
andTestSequence
. - Hundreds of extensions to Apple's
Foundation
, including customMath
operations likelerp
and alsoLoremIpsum
s,CURL
orErrors
. - Expanding core Apple APIs with reactive Combine support
- and more...
Add dependency to the project:
dependencies: [
...
.package(url: "https://github.com/przemek-jablonski/Casimir.git", exact: "6.0.0")
]
Enable core library (Casimir
):
.target(
name: "YourLibrary",
dependencies: [
.product(name: "Casimir", package: "Casimir"),
]
),
Enable testing library (Testimir
):
.testTarget(
name: "YourLibraryTests",
dependencies: [
.product(name: "Testimir", package: "Casimir"),
]
),
iOS 15.0
iPadOS 15.0
tvOS 15.0
macOS 12.0
watchOS 8.0
also compliant with Mac Catalyst