We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ab5621e commit 45ddcf8Copy full SHA for 45ddcf8
Sources/StateStruct/Source.swift
@@ -142,6 +142,19 @@ public macro PrimitiveTrackingProperty() =
142
143
}
144
145
+ enum GenericNamespace<T> {
146
+ @Tracking
147
+ struct MyState {
148
+
149
+ var stored_1: Int = 18
150
151
+ init() {
152
153
+ }
154
155
156
157
158
#if canImport(Observation)
159
import Observation
160
Sources/StateStructMacros/TrackingMacro.swift
@@ -48,7 +48,7 @@ extension TrackingMacro: ExtensionMacro {
48
49
return [
50
("""
51
- extension \(structDecl.name.trimmed): TrackingObject {
+ extension \(type): TrackingObject {
52
53
""" as DeclSyntax).cast(ExtensionDeclSyntax.self)
54
]
0 commit comments