Skip to content

0.1.0

Latest

Choose a tag to compare

@9uiLe 9uiLe released this 09 Jul 17:20
cc77a6d

Initial public release of AppMacros — production-oriented Swift macros for SwiftUI redraw optimization.

Highlights

  • @Equatable — generates Equatable conformance from stored properties and automatically picks the generation form (nonisolated static func == member for View / global-actor types, or an extension otherwise). Auto-excludes computed properties, body, closures, and environment-derived dynamic properties (in .nonisolated form). @State is 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 in equatableBody.
  • 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"),

See the CHANGELOG and docs.