32 lines
580 B
Swift
32 lines
580 B
Swift
//
|
|
// RootView.swift
|
|
// Root
|
|
//
|
|
|
|
import SwiftUI
|
|
import ComposableArchitecture
|
|
|
|
public struct RootView: View {
|
|
let store: StoreOf<RootFeature>
|
|
|
|
public init(store: StoreOf<RootFeature>) {
|
|
self.store = store
|
|
}
|
|
|
|
public var body: some View {
|
|
VStack {
|
|
Image(systemName: "globe")
|
|
.imageScale(.large)
|
|
.foregroundStyle(.tint)
|
|
Text("Hello, world!")
|
|
}
|
|
.padding()
|
|
}
|
|
}
|
|
|
|
#Preview {
|
|
RootView(store: .init(initialState: RootFeature.State()) {
|
|
RootFeature()
|
|
})
|
|
}
|