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
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
BuildableMacro
BuildableMacro is a Swift package, simplifying property modification in Swift through automated setter function generation.
combine-extensions
Extensions for Apple Combine framework
ModifiedCopy
A Swift macro for making inline copies of a struct by modifying a property.
swift-associated-objects
Associated objects utils
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.
swift-mocking
Swift macros for generating mocks.
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.
AnandaMacros
Macros for Ananda
swift-builder
Builder Patterns for Flexible Syntax in Swift.