Packages for keyword “macros”
These packages are available as a package collection, usable in Xcode or SwiftPM.
swift-loggable
Set of macros that support type-wide and per-function logging with ability to customize how logs are handled
swift-mocking
Swift macros for generating mocks.
LoremSwiftify
Swift Macro that generates realistic mock/fake data for structs, classes, and enums — perfect for SwiftUI previews and snapshot tests
macro-codable-kit
Efficient, flexible Codable with Swift Macros
swift-locking
Swift macros for protecting shared mutable state.
SwiftSyntaxSugar
Helpful extensions for SwiftSyntax.
swift-copying
A Swift Macro that generates a copying method for struct and class types, similar to Kotlin's copy function for data classes.
CaseAccessors
Swift Macros for convenient access to enum case associated values
swift-dependencies-extras
Libraries that make swift-dependencies even more useful
swift-generation
Structured output generation for Swift. Define types that language models can generate with compile-time schema validation.
SwiftStorage
SwiftStorage is an easy way to persist data without Key Value.
MockableMacros
Mocking package for swift using macros
AddPreviews
A Swift macro that makes preview-based snapshot testing easier
swift-identifiable-enum
Macro that synthesizes Identifiable conformance for Swift enums.
DeepLink
Create type-safe deep links in to iOS apps, macOS apps, and websites using Swift macros.
AccessibleText
A macro designed to help make static text more accessible by generating dynamically scaling text instead.
BuilderMacro
builder-macro is a macro that implements the Builder design pattern in Swift
MacrosKit
SafeTypesMacros
Macros for compile-time SafeTypes initializers from literals