From 1da65e6e9705146926b3c306c99ca8a25e1e7d00 Mon Sep 17 00:00:00 2001 From: Robbert Brandsma Date: Thu, 7 Dec 2023 11:20:21 +0100 Subject: [PATCH] Updated macro name --- Sources/ComposableArchitectureDelegates/DelegatingAction.swift | 2 +- .../DelegatingActionMacro.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 }