chore: wire in initial viewmodel and view

Signed-off-by: Alan Brault <alan.brault@visus.io>
This commit is contained in:
alan.brault committed 2026-08-08 09:11:56 -04:00
1 parent b776b47a62
commit 0aa242b694
7 files changed
+49 -102

No files matched your search

@@ -1,2 +0,0 @@
// The Swift Programming Language
// https://docs.swift.org/swift-book
@@ -0,0 +1,17 @@
import Foundation
import Observation
import TempestasDomain
@Observable
@MainActor
public final class MainViewModel {
public private(set) var isLoading: Bool = false
private let forecastRepository: ForecastRepository
public init(
forecastRepository: ForecastRepository
) {
self.forecastRepository = forecastRepository
}
}
@@ -0,0 +1,17 @@
import SwiftUI
public struct MainView: View {
let viewModel: MainViewModel
public init (
viewModel: MainViewModel
) {
self.viewModel = viewModel
}
public var body: some View {
NavigationStack {
}.frame(width: 320, height: 400)
}
}