Packages for keyword “macro”
These packages are available as a package collection, usable in Xcode or SwiftPM.
MetaCodable
Supercharge Swift's Codable implementations with macros meta-programming.
CodableKit
A Swift macro package designed to simplify the use of Swift's Codable protocol by allowing easy integration of default values, reducing the amount of auxiliary code you need to write.
SpryKit
Spry is a framework that allows spying and stubbing in Apple's Swift language. Also included is a XCTAsserts for the spied objects
swift-mocking
Swift macros for generating mocks.
lexic
generate roundtripping logic for RawRepresentable, LosslessStringConvertible, and more!
Ananda
JSON model decoding based on yyjson.
ModifiedCopy
A Swift macro for making inline copies of a struct by modifying a property.
swift-mocking
A compact swift mocking library powered by parameter packs.
BuildableMacro
BuildableMacro is a Swift package, simplifying property modification in Swift through automated setter function generation.
combine-extensions
Extensions for Apple Combine framework
MacroCodableKit
Boilerplate-free Codable for Swift. Supports AllOf / OneOf (OpenAPI), adjacently tagged enums, custom coding keys, default values, and value strategies — all via macros with zero runtime overhead
swift-associated-objects
Associated objects utils
swift-iterable-macros
@CaseIterable and @StaticMemberIterable power macros
ApproximateEquality
Swift ApproximateEquality protocol & macros
OrOther
A macro for adding a blank "other" case to any enum.
swift-mockable
A Swift Macro that generates mock classes from protocols for testing.
Alias
🎭 A Swift macros for defining aliases for types, functions, variables, etc.
swift-locking
Swift macros for protecting shared mutable state.
SwiftSyntaxSugar
Helpful extensions for SwiftSyntax.
Description
Compile-time-validated descriptions for Swift enums, structs, classes, and actors.