Initial public release of AppMacros — production-oriented Swift macros for SwiftUI redraw optimization.
Highlights
@Equatable— generatesEquatableconformance from stored properties and automatically picks the generation form (nonisolated static func ==member forView/ global-actor types, or anextensionotherwise). Auto-excludes computed properties,body, closures, and environment-derived dynamic properties (in.nonisolatedform).@Stateis intentionally compared.@SkipEquatable— excludes a specific stored property from the generated comparison.EquatableBodyView— bakes.equatable()into the view definition so call sites can't silently forget it; content goes inequatableBody.- Diagnostics that reject unsafe usage.
Requirements
Swift tools 6.3 (Xcode 26.4+), iOS 26+, macOS 26+, swift-syntax 603.0.2.
Install
.package(url: "https://github.com/9uiLe/swift-app-macros.git", from: "0.1.0"),