Files
purchases-ios/Examples/MagicWeatherSwiftUI/Shared/Sources/ViewModels/WeatherViewModel.swift
T

17 lines
411 B
Swift

//
// WeatherViewModel.swift
// Magic Weather SwiftUI (iOS)
//
// Created by Cody Kerns on 1/19/21.
//
import Foundation
/* Static shared model for WeatherView */
class WeatherViewModel: NSObject, ObservableObject {
static let shared = WeatherViewModel()
@Published var currentData: SampleWeatherData = .testCold
@Published var currentEnvironment: SampleWeatherData.Environment = .earth
}