diff --git a/Sources/ComposableArchitectureDelegates/DelegatingAction.swift b/Sources/ComposableArchitectureDelegates/DelegatingAction.swift index db3f7b4..7c3d5b6 100644 --- a/Sources/ComposableArchitectureDelegates/DelegatingAction.swift +++ b/Sources/ComposableArchitectureDelegates/DelegatingAction.swift @@ -9,5 +9,5 @@ public protocol DelegatingAction { @attached(extension, conformances: DelegatingAction) @attached(member, names: named(delegateAction)) -public macro ActionWithDelegate() = +public macro DelegatingAction() = #externalMacro(module: "ComposableArchitectureDelegatesMacros", type: "DelegatingActionMacro") diff --git a/Sources/ComposableArchitectureDelegatesMacros/DelegatingActionMacro.swift b/Sources/ComposableArchitectureDelegatesMacros/DelegatingActionMacro.swift index a7b093e..b227813 100644 --- a/Sources/ComposableArchitectureDelegatesMacros/DelegatingActionMacro.swift +++ b/Sources/ComposableArchitectureDelegatesMacros/DelegatingActionMacro.swift @@ -53,7 +53,7 @@ public struct DelegatingActionMacro: ExtensionMacro, MemberMacro { } let decl: DeclSyntax = """ - public var _delegateAction: \(delegateActionType.trimmed)? { + public var delegateAction: \(delegateActionType.trimmed)? { guard case .delegate(let action) = self else { return nil } return action }