Skip to content

Commit 8cfc44a

Browse files
committed
clean up
1 parent d2dc85a commit 8cfc44a

File tree

1 file changed

+0
-27
lines changed

1 file changed

+0
-27
lines changed

Sources/ComposableArchitecture/Macros.swift

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -208,30 +208,3 @@ public macro ViewAction<R: Reducer>(for: R.Type) =
208208
#externalMacro(
209209
module: "ComposableArchitectureMacros", type: "ViewActionMacro"
210210
) where R.Action: ViewAction
211-
212-
213-
@Reducer struct Feature {
214-
@ObservableState
215-
struct State {
216-
@Presents var child: Feature.State?
217-
}
218-
enum Action {
219-
case child(PresentationAction<Feature.Action>)
220-
}
221-
}
222-
import SwiftUI
223-
extension Store: ObservableObject {}
224-
225-
226-
227-
@available(macOS 11.0, *)
228-
struct V: View {
229-
@StateObject var store = Store(initialState: Feature.State()) { Feature() }
230-
@State var s2 = Store(initialState: Feature.State()) { Feature() }
231-
var body: some View {
232-
let s = \Feature.State.self
233-
let s22 = $s2
234-
let tmp = $store.scope(state: \.child, action: \.child)
235-
EmptyView()
236-
}
237-
}

0 commit comments

Comments
 (0)