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.
swift-mocking
Swift macros for generating mocks.
SpryKit
Spry is a framework that allows spying and stubbing in Apple's Swift language. Also included is a XCTAsserts for the spied objects
lexic
generate roundtripping logic for RawRepresentable, LosslessStringConvertible, and more!
Ananda
JSON model decoding based on yyjson.
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
ModifiedCopy
A Swift macro for making inline copies of a struct by modifying a property.
swift-mockable
A Swift Macro that generates mock classes from protocols for testing.
BuildableMacro
BuildableMacro is a Swift package, simplifying property modification in Swift through automated setter function generation.
combine-extensions
Extensions for Apple Combine framework
swift-associated-objects
Associated objects utils
swift-mocking
A compact swift mocking library powered by parameter packs.
OrOther
A macro for adding a blank "other" case to any enum.
Alias
🎭 A Swift macros for defining aliases for types, functions, variables, etc.
ApproximateEquality
Swift ApproximateEquality protocol & macros
Buildable
An attached swift macro for structs, classes and enums, which produces a peer struct implementing the builder pattern. Initialise your object with minimal effort using default values.
swift-iterable-macros
@CaseIterable and @StaticMemberIterable power macros
swift-locking
Swift macros for protecting shared mutable state.
SwiftSyntaxSugar
Helpful extensions for SwiftSyntax.