Skip to content

Commit 44e1bc5

Browse files
committed
Specify the names we generate
...
1 parent 0d2de76 commit 44e1bc5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/ManagedModels/ModelMacroDefinition.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ public macro Transient() =
6262
/**
6363
* An internal helper macro. Don't use this.
6464
*/
65-
@available(swift 5.9)
66-
@attached(accessor)
65+
@available(swift 5.9) // could also generate an init
66+
@attached(accessor, names: named(get), named(set))
6767
public macro _PersistedProperty() =
6868
#externalMacro(module: "ManagedModelMacros", type: "PersistedPropertyMacro")
6969

0 commit comments

Comments
 (0)