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.
Ananda
JSON model decoding based on yyjson.
lexic
generate roundtripping logic for RawRepresentable, LosslessStringConvertible, and more!
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.
BuildableMacro
BuildableMacro is a Swift package, simplifying property modification in Swift through automated setter function generation.
swift-mockable
A Swift Macro that generates mock classes from protocols for testing.
combine-extensions
Extensions for Apple Combine framework
swift-associated-objects
Associated objects utils
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
swift-iterable-macros
@CaseIterable and @StaticMemberIterable power 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-locking
Swift macros for protecting shared mutable state.
swift-mocking
A compact swift mocking library powered by parameter packs.
SwiftSyntaxSugar
Helpful extensions for SwiftSyntax.